{"id":6,"date":"2026-12-04T03:42:55","date_gmt":"2026-12-04T03:42:55","guid":{"rendered":"https:\/\/foundrydungeon.com\/?page_id=6"},"modified":"2026-12-04T04:52:53","modified_gmt":"2026-12-04T04:52:53","slug":"assessment","status":"publish","type":"page","link":"https:\/\/foundrydungeon.com\/?page_id=6","title":{"rendered":"The Foundry Self-Reflection Assessment"},"content":{"rendered":"<!-- Foundry Web Simple 1.1.0 | Automatic temporary benchmark storage -->\n\n<style>\n#foundry-assessment{--fa-blue:#0369a1;--fa-accent:#0ea5e9;--fa-ink:#0f172a;--fa-muted:#475569;--fa-line:#cbd5e1;--fa-soft:#f0f9ff;color:var(--fa-ink);font-family:Arial,Helvetica,sans-serif;font-size:17px;line-height:1.55;max-width:900px;margin:1rem auto;background:#fff;border:1px solid #e2e8f0;border-radius:18px;overflow:hidden;box-shadow:0 12px 35px rgba(15,23,42,.08)}\n#foundry-assessment *{box-sizing:border-box}\n#foundry-assessment [hidden]{display:none!important}\n#foundry-assessment .fa-inner{padding:clamp(20px,4vw,42px)}\n#foundry-assessment h2,#foundry-assessment h3{color:var(--fa-ink);font-family:Arial,Helvetica,sans-serif;line-height:1.25}\n#foundry-assessment h2{font-size:clamp(27px,4vw,38px);margin:0 0 14px}\n#foundry-assessment h3{font-size:21px;margin:22px 0 10px}\n#foundry-assessment p{margin:10px 0}\n#foundry-assessment .fa-eyebrow{color:var(--fa-blue);font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin-bottom:8px}\n#foundry-assessment .fa-privacy{background:var(--fa-soft);border-left:4px solid var(--fa-accent);padding:14px 16px;border-radius:8px;margin:20px 0}\n#foundry-assessment details{border:1px solid var(--fa-line);border-radius:10px;padding:12px 16px;margin:18px 0}\n#foundry-assessment summary{cursor:pointer;font-weight:700;color:var(--fa-blue);min-height:44px;padding-top:9px}\n#foundry-assessment dt{font-weight:700;margin-top:12px}\n#foundry-assessment dd{margin:2px 0 8px}\n#foundry-assessment fieldset{border:0;padding:0;margin:20px 0;min-width:0}\n#foundry-assessment legend{font-weight:700;font-size:18px;line-height:1.45;margin-bottom:12px;padding:0}\n#foundry-assessment label{display:block}\n#foundry-assessment select{display:block;width:100%;min-height:48px;font-size:17px;padding:8px 10px;border:1px solid #64748b;border-radius:8px;background:#fff;color:var(--fa-ink);margin:6px 0 14px}\n#foundry-assessment .fa-age-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}\n#foundry-assessment .fa-choices{display:grid;grid-template-columns:1fr 1fr;gap:9px}\n#foundry-assessment .fa-choice{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--fa-line);border-radius:9px;padding:11px 12px;cursor:pointer;min-height:50px;background:#fff}\n#foundry-assessment .fa-choice:focus-within{outline:3px solid #f59e0b;outline-offset:2px;border-color:var(--fa-blue)}\n#foundry-assessment .fa-choice:has(input:checked){border-color:var(--fa-blue);background:var(--fa-soft);box-shadow:inset 0 0 0 1px var(--fa-blue)}\n#foundry-assessment input[type=radio]{width:23px;height:23px;min-width:23px;margin:1px 0 0;accent-color:var(--fa-blue)}\n#foundry-assessment button{font:700 16px Arial,Helvetica,sans-serif;min-height:48px;border-radius:8px;padding:12px 20px;cursor:pointer;border:1px solid var(--fa-blue)}\n#foundry-assessment .fa-primary{background:var(--fa-blue);color:#fff}\n#foundry-assessment .fa-secondary{background:#fff;color:var(--fa-blue)}\n#foundry-assessment button:hover{filter:brightness(.96)}\n#foundry-assessment button:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}\n#foundry-assessment button:disabled{opacity:.45;cursor:not-allowed}\n#foundry-assessment .fa-actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:24px}\n#foundry-assessment .fa-progress-track{height:10px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin:8px 0 20px}\n#foundry-assessment .fa-progress-fill{height:100%;background:var(--fa-blue);width:0;transition:width .2s ease}\n#foundry-assessment .fa-step-title{font-size:14px;color:var(--fa-muted);font-weight:700;margin:0}\n#foundry-assessment .fa-question{border-top:1px solid #e2e8f0;padding-top:5px}\n#foundry-assessment .fa-error{color:#9f1239;background:#fff1f2;border:1px solid #fda4af;padding:12px 14px;border-radius:8px;font-weight:700}\n#foundry-assessment .fa-result-card{border:1px solid var(--fa-line);border-radius:11px;padding:16px;margin:14px 0}\n#foundry-assessment .fa-axis-top{display:flex;justify-content:space-between;gap:14px;align-items:baseline}\n#foundry-assessment .fa-axis-name{font-weight:700;font-size:18px}\n#foundry-assessment .fa-axis-poles{display:flex;justify-content:space-between;gap:12px;color:var(--fa-muted);font-size:14px;margin-top:8px}\n#foundry-assessment .fa-axis-poles span:last-child{text-align:right}\n#foundry-assessment .fa-bar{height:12px;background:#e2e8f0;border-radius:999px;margin:12px 0;overflow:hidden}\n#foundry-assessment .fa-bar-fill{height:100%;background:var(--fa-accent)}\n#foundry-assessment .fa-archetype{border:2px solid var(--fa-accent);background:var(--fa-soft);border-radius:12px;padding:20px;margin:22px 0}\n#foundry-assessment .fa-small{font-size:14px;color:var(--fa-muted)}\n#foundry-assessment .fa-disclaimer{border-top:1px solid var(--fa-line);padding-top:16px;margin-top:22px;color:var(--fa-muted)}\n@media(max-width:640px){#foundry-assessment{font-size:16px;border-radius:12px}#foundry-assessment .fa-choices,#foundry-assessment .fa-age-grid{grid-template-columns:1fr}#foundry-assessment .fa-actions button{flex:1 1 140px}#foundry-assessment .fa-axis-top{display:block}}\n@media(prefers-reduced-motion:reduce){#foundry-assessment .fa-progress-fill{transition:none}}\n@media print{#foundry-assessment{border:0;box-shadow:none;max-width:100%;font-size:12pt}#foundry-assessment .no-print{display:none!important}#foundry-assessment .fa-result-card{break-inside:avoid}#foundry-assessment .fa-inner{padding:0}}\n\n<\/style>\n<div id=\"foundry-assessment\" data-instrument-version=\"web-simple-1.1.0\">\n  <noscript><div class=\"fa-inner\"><h2>JavaScript is needed for this assessment.<\/h2><p>No answers are processed without it. Please enable JavaScript or return on another device.<\/p><\/div><\/noscript>\n  <section id=\"fa-welcome\" aria-labelledby=\"fa-welcome-title\">\n    <div class=\"fa-inner\">\n      <p class=\"fa-eyebrow\">The Foundry | Adult self-reflection<\/p>\n      <h2 id=\"fa-welcome-title\" tabindex=\"-1\">Explore how you prefer to show up in kink.<\/h2>\n      <p>This simple public assessment uses 24 statements to build an attraction and expression profile. Answer for who you are today, not who you think you should be. There is no email or account requirement.<\/p>\n      <div class=\"fa-privacy\">\n        <strong>Temporary benchmarking is on.<\/strong>\n        <p>Completed answers and calculated results are sent to The Foundry and stored temporarily for comparison with other assessments. There is no email or account requirement. Your birth month and year are discarded without being stored. Reloading clears this page\u2019s working copy; it does not delete the benchmark record. This does not create a course-placement record.<\/p>\n      <\/div>\n      <p>Interest is not consent. A result is not a diagnosis, a fixed identity, a compatibility verdict, a measure of practical skill, or proof of readiness for any class or event.<\/p>\n      <details>\n        <summary>Words used in this assessment<\/summary>\n        <dl>\n          <dt>Kink interaction or scene<\/dt><dd>A planned activity with a clear beginning and end. A scene can be physical, psychological, or both.<\/dd>\n          <dt>Dynamic<\/dt><dd>An agreed pattern of power or roles between people. It may apply only during a scene or continue into daily life.<\/dd>\n          <dt>Leading and following<\/dt><dd>The person guiding agreed activity and the person responding to that guidance. Dominant and submissive are common role names, but neither role has more worth.<\/dd>\n          <dt>Protocol<\/dt><dd>An agreed rule, ritual, title, or routine.<\/dd>\n          <dt>Soft limit<\/dt><dd>Currently not a yes unless specific conditions are discussed and freely accepted. Conditions are not automatic consent.<\/dd>\n          <dt>Hard limit<\/dt><dd>Something you do not consent to now. It is a boundary, not a challenge to overcome.<\/dd>\n        <\/dl>\n      <\/details>\n      <fieldset id=\"fa-age-fieldset\" aria-describedby=\"fa-age-note\">\n        <legend>Confirm you are 18 or older<\/legend>\n        <p id=\"fa-age-note\">Enter only birth month and year. They are checked in this open page and then discarded without being stored. This self-attestation is not identity verification.<\/p>\n        <div class=\"fa-age-grid\">\n          <label>Birth month<select id=\"fa-birth-month\" autocomplete=\"off\"><option value=\"\">Select month<\/option><\/select><\/label>\n          <label>Birth year<select id=\"fa-birth-year\" autocomplete=\"off\"><option value=\"\">Select year<\/option><\/select><\/label>\n        <\/div>\n      <\/fieldset>\n      <p id=\"fa-age-error\" class=\"fa-error\" role=\"alert\" hidden><\/p>\n      <div class=\"fa-actions\"><button type=\"button\" id=\"fa-begin\" class=\"fa-primary\">Begin the assessment<\/button><\/div>\n    <\/div>\n  <\/section>\n  <section id=\"fa-quiz\" aria-labelledby=\"fa-step-heading\" hidden>\n    <div class=\"fa-inner\">\n      <p class=\"fa-step-title\" id=\"fa-progress-text\"><\/p>\n      <div class=\"fa-progress-track\" role=\"progressbar\" aria-label=\"Assessment progress\" aria-valuemin=\"0\" aria-valuemax=\"8\" aria-valuenow=\"1\" id=\"fa-progress\"><div class=\"fa-progress-fill\" id=\"fa-progress-fill\"><\/div><\/div>\n      <h2 id=\"fa-step-heading\" tabindex=\"-1\">How well do these statements fit you today?<\/h2>\n      <p>Choose one answer for each statement. Unsure, I do not understand this wording, and Prefer not to answer are valid choices and are never treated as neutral numerical answers.<\/p>\n      <div id=\"fa-questions\"><\/div>\n      <p id=\"fa-step-error\" class=\"fa-error\" role=\"alert\" hidden><\/p>\n      <div class=\"fa-actions no-print\">\n        <button type=\"button\" id=\"fa-back\" class=\"fa-secondary\">Back<\/button>\n        <button type=\"button\" id=\"fa-next\" class=\"fa-primary\">Next<\/button>\n      <\/div>\n    <\/div>\n  <\/section>\n  <section id=\"fa-result\" aria-labelledby=\"fa-result-title\" aria-live=\"polite\" hidden>\n    <div class=\"fa-inner\">\n      <p class=\"fa-eyebrow\">Your result<\/p>\n      <h2 id=\"fa-result-title\" tabindex=\"-1\">Your current expression profile<\/h2>\n      <p>Each percentage shows how your valid answers lean between the two ends of an axis. It is not a percentage of your identity, skill, or compatibility.<\/p>\n      <div id=\"fa-archetype\"><\/div>\n      <div id=\"fa-axis-results\"><\/div>\n      <div class=\"fa-disclaimer\">\n        <p>This is a self-reflection result based on your answers today. It is not a diagnosis, a permanent identity, a compatibility verdict, a measure of practical skill, or a readiness certification. You may reject any part that does not fit.<\/p>\n        <p>It does not grant enrollment, course completion, membership, event access, or 201 readiness. This simple public result does not create a placement record.<\/p>\n      <\/div>\n      <p id=\"fa-save-status\" class=\"fa-small\" role=\"status\" aria-live=\"polite\" hidden><\/p>\n      <div class=\"fa-actions no-print\">\n        <button type=\"button\" id=\"fa-print\" class=\"fa-secondary\">Print result<\/button>\n        <button type=\"button\" id=\"fa-restart\" class=\"fa-primary\">Start over<\/button>\n      <\/div>\n      <p class=\"fa-small\">Instrument: Foundry Web Simple 1.1.0. Completed answers and results are stored temporarily for comparison. Birth month and year are never included in the benchmark record.<\/p>\n    <\/div>\n  <\/section>\n<\/div>\n\n<script>\n(function(root,factory){\n  const api=factory();\n  if(typeof module==='object' && module.exports) module.exports=api;\n  else root.FoundryAssessmentCore=api;\n})(typeof globalThis!=='undefined'?globalThis:this,function(){\n  'use strict';\n  const ITEMS=[\n    {id:'A01',text:'In a kink interaction, I prefer to guide what happens.'},\n    {id:'A02',text:'In a kink interaction, I prefer someone I trust to guide what happens.'},\n    {id:'A03',text:'I prefer to receive clear direction rather than decide every next step myself.'},\n    {id:'A04',text:'I enjoy creating a sensation or experience for someone else more than receiving it myself.'},\n    {id:'A05',text:'I enjoy being the person receiving the sensation or experience.'},\n    {id:'A06',text:\"I would rather focus on my own experience than manage someone else's experience.\"},\n    {id:'A07',text:'When trust and expectations are clear, I enjoy handing over agreed control without resisting.'},\n    {id:'A08',text:'I enjoy resisting or struggling before I give up any agreed control.'},\n    {id:'A09',text:'Being challenged or having to work for my cooperation appeals to me.'},\n    {id:'A10',text:'I like to serve or participate through actions, tasks, or visible effort.'},\n    {id:'A11',text:'During a kink interaction, I prefer to respond to direction rather than initiate what happens.'},\n    {id:'A12',text:'I would rather be guided through an experience than choose the next action myself.'},\n    {id:'A13',text:'I prefer kink to have a clear beginning and ending.'},\n    {id:'A14',text:'I enjoy rituals or agreements that carry into ordinary daily life.'},\n    {id:'A15',text:'An ongoing dynamic outside scenes appeals to me.'},\n    {id:'A16',text:'I like stepping into a role for a defined time and leaving it afterward.'},\n    {id:'A17',text:'My kink role feels connected to who I am, not only what I do during a scene.'},\n    {id:'A18',text:'I see my kink role as an expression of my everyday identity, not a separate persona.'},\n    {id:'A19',text:'Clear rules and predictable structure help me relax.'},\n    {id:'A20',text:'I enjoy discovering what works in the moment rather than following a set plan.'},\n    {id:'A21',text:'I prefer room to improvise rather than follow detailed rules or rituals.'},\n    {id:'A22',text:'Useful acts and completed tasks appeal to me more than sensation alone.'},\n    {id:'A23',text:'Physical sensations or emotional experiences matter more to me than doing something useful.'},\n    {id:'A24',text:'I would choose a sensation-focused experience over a service assignment.'}\n  ];\n  const AXES={\n    role:{name:'Role Direction',left:'Leading or Dominant',right:'Following or submissive',items:['A01','A02','A03']},\n    giving:{name:'Giving and Receiving',left:'Giving',right:'Receiving',items:['A04','A05','A06']},\n    surrender:{name:'Surrender and Resistance',left:'Surrender',right:'Resistance',items:['A07','A08','A09']},\n    active:{name:'Active and Passive',left:'Active',right:'Passive',items:['A10','A11','A12']},\n    lifestyle:{name:'Scene and Lifestyle',left:'Scene-bounded',right:'Lifestyle-integrated',items:['A13','A14','A15']},\n    identity:{name:'Role and Identity',left:'Role-based',right:'Identity-connected',items:['A16','A17','A18']},\n    structure:{name:'Structure and Improvisation',left:'Structured',right:'Improvised',items:['A19','A20','A21']},\n    sensation:{name:'Service and Sensation',left:'Service-focused',right:'Sensation-focused',items:['A22','A23','A24']}\n  };\n  function numeric(value){\n    if(typeof value==='number' && Number.isInteger(value) && value>=1 && value<=5) return value;\n    if(typeof value==='string'){\n      if(\/^[1-5]$\/.test(value)) return Number(value);\n    }\n    return null;\n  }\n  function axisScore(responses,ids){\n    const oriented=[];\n    ids.forEach((id,index)=>{\n      const value=numeric(responses[id]);\n      if(value!==null) oriented.push(index===0?6-value:value);\n    });\n    if(oriented.length<2) return {raw:null,percent:null,display:'not enough information',valid:oriented.length,mixed:false};\n    const raw=((oriented.reduce((a,b)=>a+b,0)\/oriented.length)-1)\/4*100;\n    return {raw,percent:Math.floor(raw+0.5),display:null,valid:oriented.length,mixed:Math.max(...oriented)-Math.min(...oriented)>=3};\n  }\n  function archetype(axes){\n    if(axes.role.mixed || Object.values(axes).filter(a=>a.mixed).length>=2 || axes.role.raw===null) return null;\n    if(Object.keys(AXES).filter(k=>k!=='role' && axes[k].raw!==null).length<5) return null;\n    const role=axes.role.raw;\n    const band=role<=35?'leading':role>=65?'following':'mixed';\n    const low=k=>axes[k].raw!==null && axes[k].raw<=40;\n    const high=k=>axes[k].raw!==null && axes[k].raw>=60;\n    if(band==='leading' && low('giving') && low('active') && low('structure')) return 'The Clear Guide';\n    if(band==='leading' && high('sensation') && low('active') && high('structure')) return 'The Sensation Director';\n    if(band==='following' && low('sensation') && low('active') && low('structure') && high('lifestyle')) return 'The Devoted Anchor';\n    if(band==='following' && high('giving') && high('active') && low('surrender')) return 'The Surrendered Receiver';\n    if(band==='following' && high('giving') && high('surrender') && high('structure')) return 'The Playful Resistor';\n    if(band==='mixed' && low('sensation') && low('active') && low('structure')) return 'The Versatile Craftsperson';\n    if(band==='mixed' && high('sensation') && high('structure') && low('lifestyle')) return 'The Adaptive Explorer';\n    return null;\n  }\n  function evaluate(responses){\n    if(!responses || typeof responses!=='object') return null;\n    for(const item of ITEMS){\n      const value=responses[item.id];\n      if(value===null || value===undefined || value==='') return null;\n    }\n    const internalAxes={};\n    for(const [key,axis] of Object.entries(AXES)){\n      const score=axisScore(responses,axis.items);\n      internalAxes[key]=Object.assign({name:axis.name,left:axis.left,right:axis.right},score);\n      if(score.percent!==null) internalAxes[key].display=String(score.percent);\n    }\n    const selectedArchetype=archetype(internalAxes);\n    const axes=Object.fromEntries(Object.entries(internalAxes).map(([key,axis])=>[key,{\n      name:axis.name,left:axis.left,right:axis.right,percent:axis.percent,display:axis.display\n    }]));\n    return {axes,archetype:selectedArchetype,disclaimer:'self-reflection only'};\n  }\n  function isAdult(month,year,now){\n    const m=Number(month),y=Number(year);\n    const today=now || new Date();\n    if(!Number.isInteger(m) || !Number.isInteger(y) || m<1 || m>12) return false;\n    let age=today.getFullYear()-y;\n    if(m>today.getMonth()+1) age-=1;\n    return age>=18 && age<=120;\n  }\n  return {ITEMS,AXES,evaluate,isAdult};\n});\n\n<\/script>\n<script>\n(function(){\n  'use strict';\n  const core=window.FoundryAssessmentCore;\n  if(!core) return;\n  const INSTRUMENT_VERSION='web-simple-1.1.0';\n  const BENCHMARK_ENDPOINT='\/index.php?rest_route=\/foundry-benchmark\/v1\/results';\n  let saveSequence=0;\n  let storedSubmissionId=null;\n  const answers=Object.create(null);\n  const stepCount=8;\n  let step=0;\n  const byId=id=>document.getElementById(id);\n  const welcome=byId('fa-welcome'),quiz=byId('fa-quiz'),result=byId('fa-result');\n  const choices=[\n    ['1','Not like me'],['2','Rarely like me'],['3','Sometimes like me'],['4','Usually like me'],['5','Very much like me'],\n    ['unsure','Unsure about my preference'],['unclear','I do not understand this wording'],['decline','Prefer not to answer']\n  ];\n  const reflections={\n    'The Clear Guide':'You may enjoy creating structured experiences through active direction.',\n    'The Sensation Director':'You may enjoy directing sensation while leaving room for discovery.',\n    'The Devoted Anchor':'You may value active service, clear agreements, and continuity beyond a single scene.',\n    'The Surrendered Receiver':'You may enjoy receptive surrender without needing resistance or task performance.',\n    'The Playful Resistor':'You may enjoy resistance and improvisation within a negotiated power exchange.',\n    'The Versatile Craftsperson':'You may enjoy both role directions through useful action and clear structure.',\n    'The Adaptive Explorer':'You may enjoy both role directions through scene-bounded exploration and variety.'\n  };\n  function element(tag,className,text){\n    const node=document.createElement(tag);\n    if(className) node.className=className;\n    if(text!==undefined) node.textContent=text;\n    return node;\n  }\n  function fillAgeChoices(){\n    const month=byId('fa-birth-month');\n    const monthNames=['January','February','March','April','May','June','July','August','September','October','November','December'];\n    monthNames.forEach((name,index)=>{const option=element('option','',name);option.value=String(index+1);month.appendChild(option);});\n    const year=byId('fa-birth-year');\n    const current=new Date().getFullYear();\n    for(let y=current;y>=current-120;y--){const option=element('option','',String(y));option.value=String(y);year.appendChild(option);}\n  }\n  function focusHeading(id){byId(id).focus({preventScroll:true});byId(id).scrollIntoView({block:'start',behavior:'auto'});}\n  function makeQuestion(item,index){\n    const fieldset=element('fieldset','fa-question');\n    fieldset.dataset.itemId=item.id;\n    const legend=element('legend','',`${step*3+index+1}. ${item.text}`);\n    fieldset.appendChild(legend);\n    const group=element('div','fa-choices');\n    group.id=`fa-${item.id}-choices`;\n    group.setAttribute('aria-describedby','fa-scale-note');\n    choices.forEach(([value,label])=>{\n      const wrapper=element('label','fa-choice');\n      const input=document.createElement('input');\n      input.type='radio';input.name=item.id;input.value=value;\n      input.setAttribute('aria-label',label);\n      if(answers[item.id]===value) input.checked=true;\n      input.addEventListener('change',()=>{answers[item.id]=value;byId('fa-step-error').hidden=true;});\n      wrapper.appendChild(input);\n      wrapper.appendChild(element('span','',label));\n      group.appendChild(wrapper);\n    });\n    fieldset.appendChild(group);\n    return fieldset;\n  }\n  function renderStep(){\n    const start=step*3;\n    const items=core.ITEMS.slice(start,start+3);\n    const questions=byId('fa-questions');\n    questions.replaceChildren();\n    const scaleNote=element('p','fa-small','Answer for your current preferences. Every choice is optional only in the sense that you may select an explicit nonanswer; a blank prevents completion.');\n    scaleNote.id='fa-scale-note';\n    questions.appendChild(scaleNote);\n    items.forEach((item,index)=>questions.appendChild(makeQuestion(item,index)));\n    byId('fa-progress-text').textContent=`Step ${step+1} of ${stepCount}`;\n    byId('fa-progress').setAttribute('aria-valuenow',String(step+1));\n    byId('fa-progress-fill').style.width=`${(step+1)\/stepCount*100}%`;\n    byId('fa-back').disabled=step===0;\n    byId('fa-next').textContent=step===stepCount-1?'See my result':'Next';\n    byId('fa-step-error').hidden=true;\n    focusHeading('fa-step-heading');\n  }\n  function validateStep(){\n    const items=core.ITEMS.slice(step*3,step*3+3);\n    const missing=items.find(item=>!answers[item.id]);\n    if(!missing) return true;\n    const error=byId('fa-step-error');\n    error.textContent='Please choose one answer for every statement. You may choose unsure, unclear wording, or prefer not to answer.';\n    error.hidden=false;\n    const input=document.querySelector(`input[name=\"${missing.id}\"]`);\n    if(input) input.focus();\n    return false;\n  }\n  async function storeBenchmark(){\n    const submission=saveSequence+1;\n    saveSequence=submission;\n    storedSubmissionId=null;\n    const status=byId('fa-save-status');\n    status.hidden=false;\n    status.dataset.stored='false';\n    delete status.dataset.submissionId;\n    status.textContent='Saving benchmark copy\u2026';\n    try{\n      const response=await fetch(BENCHMARK_ENDPOINT,{method:'POST',headers:{'Content-Type':'application\/json'},credentials:'omit',cache:'no-store',body:JSON.stringify({answers:Object.assign({},answers),source:'foundry-web-simple',instrument_version:INSTRUMENT_VERSION})});\n      const confirmation=await response.json();\n      if(!response.ok||confirmation.stored!==true||typeof confirmation.submission_id!=='string') throw new Error('Benchmark storage rejected the completed result');\n      if(submission!==saveSequence) return;\n      storedSubmissionId=confirmation.submission_id;\n      status.dataset.stored='true';\n      status.dataset.submissionId=storedSubmissionId;\n      status.textContent=`Benchmark result saved. Comparison ID: ${storedSubmissionId}`;\n    }catch(error){\n      if(submission!==saveSequence) return;\n      status.dataset.stored='false';\n      status.textContent='Your result is available, but the benchmark copy could not be saved. You can start over and try again.';\n    }\n  }\n  function renderResult(){\n    const output=core.evaluate(answers);\n    if(!output){\n      const error=byId('fa-step-error');\n      error.textContent='The assessment is incomplete. Please review the statements before requesting a result.';error.hidden=false;\n      return;\n    }\n    quiz.hidden=true;result.hidden=false;\n    const arch=byId('fa-archetype');arch.replaceChildren();\n    if(output.archetype){\n      const box=element('div','fa-archetype');\n      box.appendChild(element('p','fa-eyebrow','Optional reflection'));\n      box.appendChild(element('h3','',output.archetype));\n      box.appendChild(element('p','',reflections[output.archetype]));\n      arch.appendChild(box);\n    }\n    const axes=byId('fa-axis-results');axes.replaceChildren();\n    Object.values(output.axes).forEach(axis=>{\n      const card=element('div','fa-result-card');\n      const top=element('div','fa-axis-top');\n      top.appendChild(element('span','fa-axis-name',axis.name));\n      top.appendChild(element('strong','',axis.percent===null?'not enough information':`${axis.right}: ${axis.percent}% | ${axis.left}: ${100-axis.percent}%`));\n      card.appendChild(top);\n      if(axis.percent!==null){\n        const bar=element('div','fa-bar');\n        bar.setAttribute('role','img');\n        bar.setAttribute('aria-label',`${axis.name}: ${axis.percent} percent toward ${axis.right}`);\n        const fill=element('div','fa-bar-fill');fill.style.width=`${axis.percent}%`;bar.appendChild(fill);card.appendChild(bar);\n      }else{\n        card.appendChild(element('p','fa-small','Not enough valid answers to show a percentage on this axis. This is not a negative result.'));\n      }\n      const poles=element('div','fa-axis-poles');\n      poles.appendChild(element('span','',axis.left));poles.appendChild(element('span','',axis.right));card.appendChild(poles);\n      axes.appendChild(card);\n    });\n    focusHeading('fa-result-title');\n    storeBenchmark(output);\n  }\n  byId('fa-begin').addEventListener('click',()=>{\n    const month=byId('fa-birth-month').value,year=byId('fa-birth-year').value;\n    const error=byId('fa-age-error');\n    if(!core.isAdult(month,year,new Date())){\n      error.textContent='This assessment is for adults 18 and older. Check the month and year, or exit if you are under 18.';error.hidden=false;\n      return;\n    }\n    error.hidden=true;welcome.hidden=true;quiz.hidden=false;step=0;renderStep();\n    byId('fa-birth-month').value='';byId('fa-birth-year').value='';\n  });\n  byId('fa-next').addEventListener('click',()=>{\n    if(!validateStep()) return;\n    if(step<stepCount-1){step+=1;renderStep();}else renderResult();\n  });\n  byId('fa-back').addEventListener('click',()=>{if(step>0){step-=1;renderStep();}});\n  byId('fa-print').addEventListener('click',()=>window.print());\n  byId('fa-restart').addEventListener('click',()=>{\n    saveSequence++;\n    storedSubmissionId=null;\n    const status=byId('fa-save-status');status.hidden=true;status.textContent='';delete status.dataset.submissionId;status.dataset.stored='false';\n    Object.keys(answers).forEach(key=>delete answers[key]);\n    result.hidden=true;quiz.hidden=true;welcome.hidden=false;step=0;\n    byId('fa-age-error').hidden=true;focusHeading('fa-welcome-title');\n  });\n  fillAgeChoices();\n})();\n\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>JavaScript is needed for this assessment. No answers are processed without it. Please enable JavaScript or return on another device. The Foundry | Adult self-reflection Explore how you prefer to show up in kink. This simple public assessment uses 24 statements to build an attraction and expression profile. Answer for who you are today, not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-6","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/foundrydungeon.com\/index.php?rest_route=\/wp\/v2\/pages\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/foundrydungeon.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/foundrydungeon.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/foundrydungeon.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/foundrydungeon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6"}],"version-history":[{"count":3,"href":"https:\/\/foundrydungeon.com\/index.php?rest_route=\/wp\/v2\/pages\/6\/revisions"}],"predecessor-version":[{"id":9,"href":"https:\/\/foundrydungeon.com\/index.php?rest_route=\/wp\/v2\/pages\/6\/revisions\/9"}],"wp:attachment":[{"href":"https:\/\/foundrydungeon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}