/* Visual polish layer (Nov 9). Loaded last; it only restyles. No layout of the scene,
   characters or animation logic is changed here. Remove this file to return to the
   previous look. */

@font-face{font-family:'Bricolage Grotesque';src:url(../assets/fonts/bricolage-grotesque.woff2) format('woff2-variations'),url(../assets/fonts/bricolage-grotesque.woff2) format('woff2');font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:'Pixelify Sans';src:url(../assets/fonts/pixelify-sans-500.woff2) format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Pixelify Sans';src:url(../assets/fonts/pixelify-sans-600.woff2) format('woff2');font-weight:600;font-style:normal;font-display:swap}

:root{
  --ink:#1f3a33;--muted:#4a5f53;--paper:#f6f3ea;--line:#cfd4c6;
  --amber:#b9772a;--glass:rgba(248,245,236,.9);--glass-line:rgba(31,58,51,.14);
  --serif:'Bricolage Grotesque',ui-sans-serif,system-ui,sans-serif;
  --sans:'Bricolage Grotesque',ui-sans-serif,system-ui,sans-serif;
  --pixel:'Pixelify Sans','Bricolage Grotesque',monospace;
  font-family:var(--sans);font-optical-sizing:auto;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility
}

/* ---------- Header ---------- */
.site-header .brand{font:700 30px/1 var(--sans);letter-spacing:-.04em}
.site-header .brand svg{stroke-width:1.8}
.brand-period{color:var(--amber)}
.hero:not([data-tone=normal]) .site-header .brand-period{color:var(--amber)}
.site-header nav{gap:10px}
.site-header nav>.text-button,.site-header .project-link,.source-toggle{
  font-size:13px;font-weight:500;line-height:1;padding:10px 15px;min-height:38px;display:inline-flex;align-items:center;gap:6px;
  background:var(--glass);color:var(--ink);border:1px solid var(--glass-line);border-radius:99px;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:background .2s,border-color .2s}
.site-header nav>.text-button:hover,.site-header .project-link:hover,.source-toggle:hover{background:#fffdf6;border-color:rgba(31,58,51,.32)}
.source-dot{background:var(--amber);box-shadow:0 0 0 3px rgba(185,119,42,.18)}

/* ---------- Hero card: one surface instead of many small backplates ---------- */
.hero .hero-panel{
  color:var(--ink);text-align:left;
  background:var(--glass);border:1px solid var(--glass-line);border-radius:22px;
  -webkit-backdrop-filter:blur(12px) saturate(1.15);backdrop-filter:blur(12px) saturate(1.15);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 24px 60px -28px rgba(18,40,34,.55);
  transition:top .5s cubic-bezier(.2,.7,.2,1)}
.hero h1,.hero-deck,.field-label,.role-picker,.source-note,.shortcuts,.simulation-copy,.hero-principle{background:transparent!important}
.hero .hero-panel h1{
  font-family:var(--sans);font-weight:680;letter-spacing:-.035em;line-height:1.02;
  padding:0;margin:0 0 12px;color:var(--ink);text-wrap:balance}
.hero .hero-panel h1 em{font-style:normal;font-weight:300;letter-spacing:-.03em}
.hero-deck{font-size:16px;line-height:1.5;color:var(--muted);padding:0!important;margin:0!important;opacity:1}
#check-form{margin:22px 0 0!important;max-width:none}
.hero .field-label{font-size:12px;font-weight:600;letter-spacing:0;color:var(--muted);padding:0;margin:0 0 7px 2px}
.repo-field{border-radius:14px;border-color:rgba(31,58,51,.22);padding:6px;box-shadow:0 1px 0 #fff inset,0 6px 18px -10px rgba(18,40,34,.35)}
.repo-field:focus-within{border-color:var(--ink);box-shadow:0 0 0 4px rgba(185,119,42,.22)}
.repo-field input{font:500 15px/1.4 var(--sans)}
.primary-button{font-size:14px;font-weight:600;border-radius:10px;letter-spacing:-.005em;background:var(--ink)}
.primary-button:hover{background:#2c4d43}
.primary-button svg{transition:transform .2s}
.primary-button:hover svg{transform:translateX(3px)}
.role-picker{display:flex;justify-content:flex-start;width:fit-content;margin:12px 0 0!important;padding:4px!important;
  background:rgba(31,58,51,.07)!important;border-radius:11px!important;color:var(--ink)}
.role-picker>span{font-size:12px;color:var(--muted);margin:0 6px 0 8px;opacity:1}
.role-picker button{font-size:13px;font-weight:500;min-height:34px;padding:6px 14px;border-radius:8px;border:0}
.role-picker button:hover:not([aria-pressed=true]){background:rgba(31,58,51,.08)}
.role-picker button[aria-pressed=true],.hero:not([data-tone=normal]) .role-picker button[aria-pressed=true]{background:var(--ink);color:#fffdf3;box-shadow:0 2px 6px -2px rgba(18,40,34,.5)}
.hero .source-note{font-size:12.5px;line-height:1.5;color:var(--muted);margin:10px 0 0;padding:0;max-width:none;text-align:left}
.source-note a,.source-note button{text-underline-offset:3px}
.hero .shortcuts{justify-content:flex-start;margin:14px 0 0!important;padding:14px 0 0!important;border-top:1px solid var(--glass-line);border-radius:0;width:auto;gap:16px}
.hero .shortcuts .text-button{font-size:13.5px;font-weight:600;color:var(--ink);padding:4px 0}
.hero .shortcuts .text-button:hover{border-bottom-color:var(--amber)}

/* Simulation text lives inside the same card */
.hero .simulation-copy{margin:16px 0 0!important;padding:14px 0 0!important;border-top:1px solid var(--glass-line);border-radius:0;width:auto;text-align:left;color:var(--ink);min-height:0}
.simulation-kind{font:500 13px/1.2 var(--pixel);letter-spacing:.04em;color:var(--muted);margin-bottom:8px}
.hero .simulation-message{font-size:18px;font-weight:620;line-height:1.35;letter-spacing:-.01em}
.hero .simulation-detail{font-size:13.5px;line-height:1.5;color:var(--muted);margin-top:6px}
.hero .simulation-actions{justify-content:flex-start;gap:20px;margin-top:8px}
.report-link{font-size:14px;font-weight:600;padding:6px 0;text-decoration-color:var(--amber);text-decoration-thickness:2px}
.simulation-actions .text-button{font-size:13px}

/* ---------- Scene labels: the one place with a pixel voice, to match the art ---------- */
.door-button>span{
  font:600 13px/1 var(--pixel);letter-spacing:.03em;padding:4px 7px 5px;border-radius:0;
  background:#fbf7ec;color:var(--ink);box-shadow:0 0 0 2px var(--ink),3px 3px 0 2px rgba(31,58,51,.35)}
.door-button[aria-pressed=true]>span{background:var(--ink);color:#fff6e8;box-shadow:0 0 0 2px var(--ink),3px 3px 0 2px rgba(185,119,42,.75)}
.actor-label{
  font:600 12px/1 var(--pixel);letter-spacing:.03em;padding:3px 6px 4px;border-radius:0;
  background:#fbf7ec;color:var(--ink);box-shadow:0 0 0 2px var(--ink)}
.actor-label:before{height:5px;width:5px;vertical-align:1px}

/* ---------- Footer strip ---------- */
.hero-footer{font-size:12px}
@media(min-width:1000px){.honesty-line{max-width:none;white-space:nowrap}}
.hero .hero-principle,.honesty-line{
  background:var(--glass)!important;color:var(--ink);border:1px solid var(--glass-line);border-radius:99px;padding:6px 12px;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}

/* Characters always stay visible: they pass in front of the card, never behind it. */
.hero .hero-panel{z-index:3}

/* ---------- Desktop placement: card on the left, under the header ---------- */
@media(min-width:761px){
  .hero .hero-panel{left:clamp(24px,3vw,48px)!important;top:clamp(84px,12.5svh,112px)!important;transform:none!important;
    width:clamp(360px,40vw,540px)!important;padding:26px 28px 20px}
  body:not(.has-result) .hero:not(.is-running) .hero-panel h1{font-size:clamp(30px,2.7vw,42px)!important;margin:0 0 12px!important;letter-spacing:-.035em}
  .has-result .hero .hero-panel h1,.hero.is-running .hero-panel h1{font-size:clamp(26px,2.2vw,34px)!important;margin:0!important;letter-spacing:-.03em}
  .has-result .hero .hero-panel,.hero.is-running .hero-panel{padding:20px 24px 16px}
}
@media(min-width:761px) and (max-height:760px){
  .hero .hero-panel{top:84px!important;padding:20px 24px 16px}
  body:not(.has-result) .hero:not(.is-running) .hero-panel h1{font-size:clamp(30px,2.6vw,40px)!important}
  .hero-deck{font-size:14.5px}
  #check-form{margin-top:16px!important}
  .hero .shortcuts{margin-top:8px!important;padding-top:8px!important}
  .hero .source-note{margin-top:6px}
  .hero .hero-panel h1{margin-bottom:8px!important}
  .role-picker{margin-top:10px!important}
  #check-form{margin-top:14px!important}
  .hero .field-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;margin:0}
  .hero-deck{margin-bottom:0!important}
}
@media(min-width:761px) and (max-width:1100px){
  .hero .hero-panel{width:clamp(330px,46vw,500px)!important}
  .repo-field input{font-size:14px}
  .role-picker button{padding:6px 10px;font-size:12.5px}
}

/* ---------- Mobile ---------- */
@media(max-width:760px){
  .site-header .brand{font-size:27px}
  .site-header nav>.text-button,.source-toggle{font-size:12px;padding:8px 12px;min-height:36px}
  .hero .hero-panel{left:12px!important;right:12px;width:auto!important;transform:none!important;top:74px!important;padding:18px 16px 14px;border-radius:18px}
  body:not(.has-result) .hero:not(.is-running) .hero-panel h1,.hero .hero-panel h1{font-size:clamp(27px,8vw,34px)!important;margin:0 0 8px!important}
  .has-result .hero .hero-panel h1{font-size:24px!important;margin:0!important}
  .hero-deck{font-size:14px;max-width:none}
  #check-form{margin-top:14px!important}
  .repo-field input{font-size:14px}
  .primary-button{font-size:13px;padding:12px 13px}
  .role-picker{width:100%}
  .role-picker button{flex:1;padding:6px 4px;font-size:12.5px}
  .role-picker>span{margin:0 4px 0 6px}
  .hero .source-note{font-size:12px}
  .hero .shortcuts{gap:12px;flex-wrap:wrap}
  .hero .shortcuts .text-button{font-size:12.5px}
  .door-button>span{font-size:11px;padding:3px 5px 4px}
  .actor-label{font-size:10px;padding:2px 4px 3px}
  .hero-footer{font-size:11px}
  .site-header .project-link{display:none}
  .site-header nav{gap:8px}
  .site-header nav>.text-button,.source-toggle{white-space:nowrap}
  .hero-panel>.eyebrow{display:none}
  .hero .shortcuts{margin-top:10px!important;padding-top:10px!important}
  .hero .simulation-copy{margin-top:12px!important;padding-top:10px!important}
  .has-result .hero .hero-panel,.hero.is-running .hero-panel{padding:14px 14px 10px}
  .honesty-line{border-radius:12px}
  .hero .simulation-message{font-size:15px}
  .hero .simulation-detail{font-size:12.5px}
}
@media(max-height:720px) and (max-width:760px){
  .hero .hero-panel{top:66px!important;padding:14px 14px 12px}
  body:not(.has-result) .hero:not(.is-running) .hero-panel h1{font-size:26px!important}
  .hero-deck{font-size:13px}
}

/* ---------- Report ---------- */
.report{background:var(--paper)}
.section-kicker,.report-inner>.section-kicker{font:500 13px/1.4 var(--pixel);letter-spacing:.05em;color:var(--muted)}
.report h2{font-weight:650;letter-spacing:-.04em}
.report h3{font-weight:620;letter-spacing:-.03em}
.report-date{font-size:13px}
.result-badge{font-size:12.5px;font-weight:600;padding:6px 11px;border-radius:99px}
.report-lead{font-size:clamp(22px,2.2vw,28px);font-weight:560;letter-spacing:-.02em;line-height:1.3}
.analysis-summary{font-size:15px;line-height:1.65}
.section-heading>p,.protection-section>p:not(.section-kicker),.recommendation>p:not(.section-kicker){font-size:14.5px;line-height:1.6}
.role-card h4{font-weight:640;letter-spacing:-.025em}
.role-caption{font-size:11.5px;letter-spacing:.01em;line-height:1.45}
.role-list li{font-size:13.5px}
.cap-status{font-size:11.5px;letter-spacing:.02em}
.role-note,details{font-size:13px}
.evidence-list li,.evidence-list code{font-size:12px}
.change-item{font-size:14px}
.change-item h4{font-size:15px;font-weight:650}
.change-limit{font-size:13px}
.effect-line{font-size:12px}
.fine-print{font-size:12px!important}
.in-place{font-size:14px}
.residual-section>p:last-child{font-size:16px}
.unknown-section p,.unknown-section li,.evidence-section>p{font-size:14px}
.subtle-button{font-size:13px;font-weight:500;border-radius:10px}
.report-footer{font-size:12.5px}
.report-footer .brand{font:700 26px/1 var(--sans);letter-spacing:-.04em}
.role-card.selected{box-shadow:inset 0 3px 0 var(--amber)}

/* ---------- Dialogs ---------- */
dialog{border-radius:20px}
dialog h2{font-weight:650;letter-spacing:-.035em}
dialog .eyebrow,.dialog-top .eyebrow{font:500 13px/1.3 var(--pixel);letter-spacing:.05em}
.dialog-deck{font-size:15px}
.about-steps p{font-size:15px}
.dialog-note{font-size:12.5px}
.tabs button{font-size:13.5px}
.case-panel h3{font-weight:620;letter-spacing:-.02em}
.case-panel>p{font-size:14.5px}
.case-year{font-weight:300;letter-spacing:-.04em}
.signal blockquote{font:500 16px/1.55 var(--sans);font-style:normal;border-left:0;quotes:"\201C" "\201D"}
.signal blockquote:before{content:open-quote}.signal blockquote:after{content:close-quote}
.signal p,.case-provider,.history-links{font-size:13px}
.attention{font-size:12px;border-radius:99px;padding:5px 10px}
.example-repos button,.case-select{font-size:13px}
.case-badge{font-size:11.5px;border-radius:99px;padding:5px 10px}
