/* Light surfaces retain the widgets' warm grid, corner markers and motion. */
.projects-section{
 --project-text:#252427;--project-muted:#6b645e;--project-line:#e4e0db;
 --project-accent:#b64412;--project-orange:#f17818;--project-surface:#fff;
 color-scheme:light;color:var(--project-text);padding:44px 0 72px;
 background:radial-gradient(ellipse at 85% 0,#f1781809,transparent 48%),#fbfaf8
}
.projects-section :is(h1,h2,h3){color:var(--project-text)}
.projects-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:clamp(28px,4vw,60px);align-items:start}
.projects-sidebar{min-width:0}
.projects-list-heading{padding:0 12px 20px;border-bottom:1px solid var(--project-line)}
.projects-list-heading h2{font-size:.75rem;font-weight:600;letter-spacing:.13em;text-transform:uppercase;margin:0;color:var(--project-muted)}
.projects-list{padding-top:10px}
.project-link{position:relative;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 12px;margin:3px 0;border:1px solid transparent;text-decoration:none;transition:background .2s,border-color .2s,transform .2s}
.project-link>span:first-child{min-width:0}
.project-link strong{display:block;font-size:.78rem;font-weight:500;line-height:1.6;color:var(--project-muted)}
.project-link[aria-current]{border-color:#f1781838;background:linear-gradient(90deg,#f1781817,#f1781805)}
.project-link[aria-current]::before{content:'';position:absolute;left:-1px;top:11px;bottom:11px;width:2px;background:var(--project-orange);box-shadow:0 0 16px #f1781860}
.project-link[aria-current] strong,.project-link:hover strong{color:var(--project-text)}
.project-link[aria-current] .project-views{color:var(--project-accent)}
.project-link:hover{background:#42301a08;transform:translateX(2px)}
.project-views{margin-left:auto;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.73rem;font-variant-numeric:tabular-nums;color:#6b645e;white-space:nowrap}
.projects-section :is(a,button,input,select,textarea):focus-visible{outline:2px solid var(--project-accent);outline-offset:4px}
.project-content{min-width:0;scroll-margin-top:108px;animation:project-enter .45s ease-out both}
.project-heading{margin-bottom:30px;padding-top:0}
.project-heading::before{content:'';display:block;width:36px;height:3px;background:var(--project-orange);margin-bottom:18px;box-shadow:0 0 20px #f178183d}
.project-heading h1{font-size:clamp(1.8rem,3vw,2.6rem);line-height:1.2;letter-spacing:-.045em;margin:0 0 12px}
.project-description{max-width:700px;color:var(--project-muted);margin:0;font-size:.92rem;line-height:1.8}
.project-example{position:relative;isolation:isolate;border:1px solid #f1781855;border-radius:12px;background:radial-gradient(ellipse at top right,#f1781810,transparent 65%),linear-gradient(#30271e05 1px,transparent 1px),linear-gradient(90deg,#30271e05 1px,transparent 1px),#fff;background-size:auto,32px 32px,32px 32px,auto;box-shadow:inset 0 0 35px #f1781805,0 20px 70px #3924100a}
.project-example::before{content:'';position:absolute;inset:10px;z-index:-1;pointer-events:none;background:linear-gradient(#f17818,#f17818) top left/17px 1px,linear-gradient(#f17818,#f17818) top left/1px 17px,linear-gradient(#f17818,#f17818) bottom right/17px 1px,linear-gradient(#f17818,#f17818) bottom right/1px 17px;background-repeat:no-repeat;opacity:.55}
.project-example-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 28px;border-bottom:1px solid #f1781826;background:#f1781805;border-radius:12px 12px 0 0}
.project-example-heading h2{font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;margin:0}
.project-status{display:inline-flex;align-items:center;gap:8px;color:var(--project-accent);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.68rem;background:#f178180c;border:1px solid #f178182b;border-radius:4px;padding:5px 9px;white-space:nowrap}
.project-status.is-live::before{content:'';width:5px;height:5px;border-radius:50%;background:#187346;box-shadow:0 0 9px #18734655}
.project-example-body{padding:clamp(20px,3vw,32px)}
.project-mockup,.lighthouse-form{display:grid;gap:14px;min-width:0;margin:0;padding:0;border:0}
.project-mockup label,.lighthouse-form label{display:block;font-size:.74rem;font-weight:600;color:#48413c}
.project-mockup :is(input,textarea,select),.lighthouse-form :is(input,select){display:block;width:100%;min-width:0;min-height:50px;padding:13px 14px;font:inherit;font-size:.82rem;border:1px solid #c9c1b9;border-radius:5px;background:#fff;color:var(--project-text);opacity:1;transition:border-color .2s,box-shadow .2s}
.lighthouse-form :is(input,select):focus{border-color:var(--project-orange);box-shadow:0 0 0 3px #f1781812}
.project-mockup textarea{resize:none}
.projects-section :is(input,textarea)::placeholder{color:#756d66;opacity:1}
.projects-section .btn{justify-self:start;display:inline-flex;justify-content:center;align-items:center;gap:12px;min-height:48px;margin-top:4px;padding:13px 22px;border:1px solid #f1781880;border-radius:4px;background:#b64412;color:#fff;font-size:.8rem;font-weight:700;box-shadow:0 4px 20px #f1781812;transition:background .2s,box-shadow .2s,transform .2s;clip-path:polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,9px 100%,0 calc(100% - 9px))}
.projects-section .btn::before,.projects-section .btn::after{display:none}
.projects-section .btn__label{display:inline-flex;align-items:center;gap:12px}
.projects-section :is(.btn__icon,.btn__light,.btn__pulse){display:none}
.projects-section .btn:hover:not(:disabled){background:#96350b;transform:translateY(-2px);box-shadow:0 8px 26px #f178182b;filter:none}
.projects-section .btn:active:not(:disabled){transform:translateY(0)}
.projects-section .btn:focus-visible{outline:2px solid var(--project-accent);outline-offset:5px;clip-path:none}
.project-mockup .btn{opacity:.6;cursor:not-allowed}
.project-mockup :disabled{cursor:not-allowed}
.project-playground{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.project-playground textarea{font-family:monospace}
.project-output{display:grid;place-items:center;min-height:160px;border:1px solid var(--project-line);background:#faf8f5;color:var(--project-muted);font-size:.8rem}
.project-technical{margin-top:28px;padding:22px 0 0;border-top:1px solid var(--project-line)}
.project-technical>h2{font-size:.73rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--project-accent);margin:0 0 12px}
.project-technical p{font-size:.82rem;line-height:1.85;color:var(--project-muted);max-width:790px;margin:0 0 10px}
.lighthouse-fields{display:grid;grid-template-columns:minmax(0,1fr) 148px;gap:14px}
.lighthouse-fields>div{min-width:0;display:grid;gap:9px}
.lighthouse-form button:disabled{background:#f9ece1;color:var(--project-accent);cursor:wait;box-shadow:none}
.lighthouse-button-icon{display:inline-flex;flex:none;font-size:1.1rem;line-height:1}
.lighthouse-form button:disabled .lighthouse-button-icon{font-size:0;width:13px;height:13px;border:2px solid #b6441240;border-top-color:var(--project-accent);border-radius:50%;animation:audit-orbit .85s linear infinite}
.lighthouse-console{display:grid;grid-template-columns:100px minmax(0,1fr);gap:0 22px;align-items:center;position:relative;margin-top:28px;padding:24px 20px 0;background:#faf8f5;border:1px solid var(--project-line);border-radius:6px;transition:border-color .3s}
.lighthouse-console[data-state=running]{border-color:#f178184a}
.lighthouse-console[data-state=complete]{border-color:#18734633}
.lighthouse-console[data-state=error]{border-color:#b9342955}
.lighthouse-console-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.lighthouse-console-heading strong{font-size:.83rem;font-weight:600}
.lighthouse-status{font-size:.75rem;line-height:1.75;margin:7px 0 0;color:var(--project-muted);overflow-wrap:anywhere}
.lighthouse-target{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.65rem;color:var(--project-accent);overflow-wrap:anywhere;margin:8px 0 0;line-height:1.6}
.lighthouse-elapsed{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.63rem;font-variant-numeric:tabular-nums;color:var(--project-muted)}
.lighthouse-scan{position:relative;display:grid;place-items:center;width:100px;height:100px;border:1px solid #f1781826;border-radius:50%;background:radial-gradient(circle,#f178180b,transparent 70%)}
.lighthouse-scan::before{content:'';position:absolute;inset:10px;border:1px dashed #f1781838;border-radius:50%}
.lighthouse-orbit{position:absolute;inset:-1px;border:1px solid transparent;border-top-color:var(--project-orange);border-bottom-color:#f1781855;border-radius:50%;transform:rotate(-35deg);opacity:.45}
.lighthouse-scan-page{position:relative;width:34px;height:43px;padding:6px;border:1px solid #b6441288;border-radius:3px;background:#fff;transition:opacity .3s}
.lighthouse-scan-page i{display:block;height:3px;border-bottom:1px solid #b6441255;margin:0 0 5px}
.lighthouse-scan-page b{display:block;width:11px;height:8px;background:#f1781850;margin:0 0 4px}
.lighthouse-scan-page span{display:block;height:1px;background:#b6441270;margin:3px 0}
.lighthouse-scan-page span:nth-of-type(2){width:70%}
.lighthouse-scan-page em{position:absolute;inset:8px -4px auto;height:1px;background:var(--project-orange);box-shadow:0 0 10px #f17818;opacity:0}
.lighthouse-scan-beam{position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,transparent 70%,#f1781822 99%,#f1781855);opacity:0}
.lighthouse-console[data-state=starting] .lighthouse-orbit,.lighthouse-console[data-state=queued] .lighthouse-orbit{animation:audit-orbit 6s linear infinite;opacity:.8}
.lighthouse-console[data-state=running] .lighthouse-orbit{animation:audit-orbit 3s linear infinite;opacity:1}
.lighthouse-console[data-state=running] .lighthouse-scan-beam{opacity:1;animation:audit-orbit 4s linear infinite}
.lighthouse-console[data-state=running] .lighthouse-scan-page em{opacity:1;animation:audit-scan 2.4s ease-in-out infinite alternate}
.lighthouse-console:is([data-state=starting],[data-state=queued]) .lighthouse-scan-page{animation:audit-wait 2s ease-in-out infinite alternate}
.lighthouse-state-icon{position:absolute;width:48px;height:48px;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;display:none}
.lighthouse-state-icon.is-success{stroke:#187346}
.lighthouse-state-icon.is-error{stroke:#b93429}
.lighthouse-console:is([data-state=complete],[data-state=error]) :is(.lighthouse-scan-page,.lighthouse-orbit){opacity:0}
.lighthouse-console[data-state=complete] .is-success,.lighthouse-console[data-state=error] .is-error{display:block;animation:project-enter .35s ease-out both}
.lighthouse-console[data-state=error] .lighthouse-status{color:#b93429}
.lighthouse-stages{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;padding:0;margin:22px -20px 0;border-top:1px solid var(--project-line)}
.lighthouse-stages li{display:flex;align-items:center;justify-content:center;gap:7px;padding:14px 4px;position:relative;color:#756d66;font-size:.65rem;transition:color .3s,background .3s}
.lighthouse-stages li+li{border-left:1px solid var(--project-line)}
.lighthouse-stages span{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.58rem;opacity:.7}
.lighthouse-stages [data-status=active]{color:var(--project-accent);background:#f1781809;box-shadow:inset 0 2px var(--project-orange)}
.lighthouse-stages [data-status=done]{color:#187346}
.lighthouse-stages [data-status=error]{color:#b93429;box-shadow:inset 0 2px #b93429}
.lighthouse-results[hidden],.lighthouse-target[hidden],.lighthouse-elapsed[hidden]{display:none}
.lighthouse-results{margin-top:28px;padding-top:24px;border-top:1px solid var(--project-line);animation:project-enter .4s ease-out both}
.lighthouse-results-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:12px}
.lighthouse-results-heading h3{margin:0;font-size:.88rem}
.lighthouse-results-heading>span{color:var(--project-muted);font-size:.63rem;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.lighthouse-scores{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.lighthouse-score{--audit-color:#6b645e;text-align:center;border:1px solid var(--project-line);border-radius:5px;background:#fff;padding:20px 8px 16px;animation:project-enter .45s ease-out both;animation-delay:calc(var(--audit-index)*80ms)}
.lighthouse-score[data-grade=good]{--audit-color:#187346}
.lighthouse-score[data-grade=average]{--audit-color:#935c05}
.lighthouse-score[data-grade=poor]{--audit-color:#b93429}
.lighthouse-score-ring{position:relative;width:min(100%,100px);aspect-ratio:1;margin:0 auto 12px;display:grid;place-items:center}
.lighthouse-score-ring svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke-width:4;transform:rotate(-90deg)}
.lighthouse-score-ring circle:first-child{stroke:#e9e4de}
.lighthouse-score-ring circle:last-child{stroke:var(--audit-color);stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:var(--audit-offset);animation:audit-score 1s ease-out both;animation-delay:calc(var(--audit-index)*80ms)}
.lighthouse-score strong{font-size:1.9rem;font-weight:600;font-variant-numeric:tabular-nums;color:var(--audit-color)}
.lighthouse-score>span{font-size:.68rem;color:var(--project-muted)}
.lighthouse-test-info{font-size:.68rem!important;color:var(--project-muted);line-height:1.8;margin:18px 0}
.lighthouse-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;margin:24px 0}
.lighthouse-metrics div{padding:15px 0;border-bottom:1px solid var(--project-line)}
.lighthouse-metrics dt{font-size:.68rem;color:var(--project-muted)}
.lighthouse-metrics dd{margin:5px 0 0;font-size:1.15rem;font-weight:600;color:var(--project-text)}
.lighthouse-results>h3{font-size:.87rem;margin-top:28px}
.lighthouse-issues{list-style:none;padding:0;font-size:.77rem;margin:0}
.lighthouse-issues li{position:relative;padding:18px 0 18px 20px;border-bottom:1px solid var(--project-line);overflow-wrap:anywhere}
.lighthouse-issues li::before{content:'';position:absolute;top:25px;left:0;width:5px;height:5px;border:1px solid var(--project-accent);transform:rotate(45deg)}
.lighthouse-issues strong{font-weight:600;color:var(--project-text)}
.lighthouse-issues p{color:var(--project-muted);margin:7px 0;line-height:1.85}
.lighthouse-issues small{color:var(--project-accent)}
.lighthouse-test-info:empty{display:none}
@keyframes project-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes audit-orbit{to{transform:rotate(360deg)}}
@keyframes audit-scan{to{transform:translateY(28px)}}
@keyframes audit-wait{from{opacity:.4}to{opacity:1}}
@keyframes audit-score{from{stroke-dashoffset:100}to{stroke-dashoffset:var(--audit-offset)}}
@media(max-width:1000px){.projects-layout{grid-template-columns:235px minmax(0,1fr);gap:28px}.project-link{padding:11px 9px}.project-link strong{font-size:.75rem}.lighthouse-console{grid-template-columns:76px minmax(0,1fr);gap:0 16px}.lighthouse-scan{width:76px;height:76px}.project-playground{grid-template-columns:1fr}}
@media(max-width:760px){.projects-section{padding-top:28px}.projects-layout{grid-template-columns:minmax(0,1fr);gap:36px}.project-link{padding:12px 14px}.project-link strong{font-size:.82rem}.project-example-heading{padding:18px 20px}.project-heading{margin-bottom:24px}}
@media(max-width:480px){.lighthouse-fields{grid-template-columns:minmax(0,1fr)}.lighthouse-form .btn{width:100%;justify-self:stretch}.lighthouse-console{grid-template-columns:1fr;justify-items:center;gap:18px;padding:22px 14px 0}.lighthouse-console-copy{width:100%;text-align:center}.lighthouse-console-heading{justify-content:center;flex-direction:column;gap:7px}.lighthouse-stages{width:calc(100% + 28px);margin:2px -14px 0;justify-self:stretch}.lighthouse-stages li{gap:4px;font-size:.61rem;padding:13px 3px}.lighthouse-scores{gap:6px}.lighthouse-score{padding:14px 4px 12px}.lighthouse-score strong{font-size:1.5rem}.lighthouse-score>span{font-size:.58rem}.lighthouse-metrics{grid-template-columns:minmax(0,1fr)}.project-status{font-size:.6rem}.project-example-heading h2{font-size:.73rem}}
@media(prefers-reduced-motion:reduce){.projects-section *,.projects-section *::before,.projects-section *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.project-link:hover,.projects-section .btn:hover:not(:disabled){transform:none}}
