
#projects{color-scheme:dark;--chalk:#eff3ec;--muted:#b3c4bd;--green:#66ed95;--board:#172023;--paper:#f5f5ee}
#projects, #projects *{box-sizing:border-box}
#projects{margin:0;background:var(--board);color:var(--chalk);font:16px/1.5 Nunito,sans-serif}
#projects button,#projects a,#projects textarea{font:inherit}
#projects button{color:inherit;cursor:pointer;border:0}
#projects a{color:inherit;text-decoration:none}
#projects button:focus-visible,#projects a:focus-visible,#projects textarea:focus-visible,#projects [tabindex="0"]:focus-visible{outline:3px solid var(--green);outline-offset:4px}
#projects [hidden]{display:none!important}
#projects h2,#projects h3,#projects p,#projects dl,#projects dd{margin:0}
#projects .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#projects{max-width:1440px;margin:auto;padding:36px clamp(18px,3.3vw,48px) 28px;background-image:linear-gradient(#ffffff03 1px,transparent 1px),linear-gradient(90deg,#ffffff03 1px,transparent 1px);background-size:32px 32px}
#projects .section-heading{display:flex;align-items:center;gap:36px;margin-bottom:30px}
#projects .section-heading h2{position:relative;flex:0 0 clamp(290px,34vw,430px);width:clamp(290px,34vw,430px)}
#projects .section-heading>p{margin-left:auto;text-align:right;color:var(--muted)}
#projects .project-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px;margin-bottom:28px;border-bottom:1px solid #ffffff12;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#547161 transparent}
#projects .project-tab{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;min-width:0;min-height:44px;padding:6px 0 11px;background:transparent;color:#b3c4bd;border-bottom:2px solid transparent;white-space:normal;font-size:13px;line-height:1.4;text-align:center}
#projects .project-icon{display:block;width:48px;height:48px;object-fit:contain;opacity:.82}
#projects .project-tab:hover .project-icon,#projects .project-tab[aria-selected=true] .project-icon{opacity:1}
#projects .project-tab:hover{color:var(--chalk)}
#projects .project-tab[aria-selected=true]{color:var(--chalk);border-bottom-color:var(--green)}
#projects .tab-title{font-weight:700}
#projects .showcase{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:clamp(28px,4.5vw,64px);row-gap:12px;align-items:start}
#projects .project-visual,#projects .project-copy{display:contents}
#projects .project-visual-content{grid-column:1;grid-row:1;min-width:0}
#projects .project-copy-content{grid-column:2;grid-row:1;min-width:0;padding-top:34px}
#projects .visual-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:5px 16px;margin-bottom:12px}
#projects #project-name{font-size:16px;font-weight:800}
#projects .screen{display:block;position:relative;width:100%;height:clamp(320px,36vw,420px);padding:0;border-radius:6px;overflow:hidden;background:#101b1a;text-align:center}
#projects .screen>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
#projects .screen.is-portrait{background:transparent}
#projects .screen.is-portrait>img{width:auto;max-width:100%;margin:auto;object-fit:contain}
#projects .screen-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px;margin-bottom:10px}
#projects .zoom-control{display:inline-flex;align-items:center;justify-self:end;gap:8px;min-height:32px;padding:5px 8px;border-radius:4px;background:#eff3eceb;color:#233a2f;font-size:12px;line-height:1.3;font-weight:700;white-space:nowrap}
#projects .zoom-icon{font-size:18px;line-height:1}
#projects .zoom-control:hover{background:#fff}
#projects .screen-steps{display:flex;flex-wrap:wrap;min-width:0;gap:6px}
#projects .screen-steps:empty{display:none}
#projects .screen-step{max-width:100%;min-height:32px;padding:5px 10px;border:1px solid #526c5e;border-radius:4px;background:transparent;font-size:12px;color:#d8e4dc}
#projects .screen-step:hover{border-color:#a3bfad}
#projects .screen-step[aria-pressed=true]{background:#d5e9dc;color:#233a2f;border-color:#d5e9dc}
#projects .demo-link{grid-column:1;grid-row:2;display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin-top:8px;padding:12px 18px;border-radius:5px;background:var(--chalk);color:#233a2f;text-align:center;font-size:15px;line-height:1.4;font-weight:800}
#projects .demo-link:hover{background:#fff}
#projects .project-copy h3{max-width:24ch;font:700 clamp(26px,2.35vw,34px)/1.2 Nunito,sans-serif;letter-spacing:-.02em}
#projects .project-summary{margin-top:16px;max-width:44ch;color:#c4d0c9;font-size:16px;line-height:1.6}
#projects .project-details{margin-top:18px;color:#b7c9bc;font-size:13px}
#projects .situation{margin-bottom:16px;line-height:1.6}
#projects .project-facts{display:grid;gap:14px;line-height:1.6}
#projects .project-facts>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:14px}
#projects .project-facts dt{color:#93b4a0;font-size:12px;font-weight:700}
#projects .project-facts dd{font-size:13px;color:#c4d0c9}
#projects .project-actions{grid-column:2;grid-row:2;margin-top:8px}
#projects .project-actions>.button{min-height:48px}
#projects .button{display:inline-flex;align-items:center;justify-content:center;gap:18px;max-width:100%;min-height:46px;padding:12px 18px;border-radius:5px;font-size:15px;line-height:1.3;font-weight:800}
#projects .primary{background:var(--green);color:#153322}
#projects .primary:hover{background:#7bf0a5}
#projects .section-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 18px;margin-top:34px;padding-top:22px;color:#bdcec3;font-size:16px}
#projects .footer-link{display:inline-flex;align-items:center;justify-content:center;gap:12px;max-width:100%;min-height:46px;padding:12px 18px;border:1px solid #71967f;border-radius:5px;background:#20332a;color:var(--chalk);font-size:15px;line-height:1.4;font-weight:700}
#projects .footer-link:hover{background:#2a4336;border-color:var(--green)}
#projects .bot-scheme{height:clamp(300px,36vw,420px);overflow:auto;padding:22px;border-radius:6px;background:#e1ece6;color:#263c35;scrollbar-width:thin}
#projects .chat-top{display:flex;align-items:center;gap:10px;margin-bottom:16px;font-size:13px;font-weight:800}
#projects .chat-top small{display:block;color:#667c71;font-size:11px;font-weight:400}
#projects .chat-avatar{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:50%;background:#2a5444;color:#d8f9e3;font-size:24px}
#projects .chat-message{max-width:90%;margin:10px 0;padding:11px;background:#fff;border-radius:7px 7px 7px 0;font-size:11px;line-height:1.45}
#projects .chat-message.outgoing{margin-left:auto;background:#c2e2c9;border-radius:7px 7px 0 7px}
#projects .chat-result{margin-top:14px;padding-left:10px;border-left:2px solid #43805d;font-size:12px;line-height:1.45}
#projects .chat-result>span{display:block;margin-bottom:4px;color:#658072;font-size:11px}
#projects dialog{max-height:92vh;padding:22px;border:1px solid #849b8d;border-radius:8px;background:var(--paper);color:#233a2f;box-shadow:0 24px 80px #0008}
#projects dialog::backdrop{background:#071510df}
#projects .dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
#projects .dialog-heading h2{font:27px/1.2 Neucha,cursive}
#projects .close{min-width:44px;min-height:44px;padding:0;background:transparent;font:30px/1 Nunito,sans-serif;color:#375443}
#projects .image-dialog{width:min(1300px,95vw)}
#projects .image-dialog>img{display:block;width:100%;height:calc(85vh - 135px);object-fit:contain;background:#dce5de}
#projects .image-dialog>p{margin-top:12px;font-size:12px}
#projects .contact-dialog{width:min(540px,92vw)}
#projects .contact-dialog>p{font-size:14px}
#projects .contact-dialog label{display:block;margin:18px 0 7px;font-size:12px;font-weight:800}
#projects .contact-dialog textarea{width:100%;min-height:120px;margin-bottom:14px;padding:12px;resize:vertical;border:1px solid #acbcb0;border-radius:5px;background:#fff;color:#243d30;font-size:14px;line-height:1.5}
#projects .prototype-note{margin-top:12px;color:#6b7c6e;font-size:11px!important}
@media(max-width:1050px){
#projects .project-tabs{gap:17px}
#projects .project-tab{font-size:12px}
#projects .project-summary{font-size:15px}}
@media(max-width:760px){
#projects{padding:25px 18px}
#projects .section-heading{display:block;margin-bottom:22px}
#projects .section-heading h2{width:min(100%,350px)}
#projects .section-heading>p{margin:16px 0 0;text-align:left}
#projects .project-tabs{gap:22px;margin-bottom:22px}
#projects .project-tab{font-size:13px}
#projects .showcase{grid-template-columns:minmax(0,1fr);gap:26px;align-items:start}
#projects .project-visual,#projects .project-copy{display:block;min-width:0}
#projects .project-copy{grid-row:1}
#projects .project-copy-content{padding-top:0}
#projects .project-copy h3{font-size:27px}
#projects .project-summary{margin-top:12px;font-size:15px}
#projects .project-actions,#projects .demo-link{margin-top:16px}
#projects .project-details{margin-top:12px}
#projects .screen,#projects .bot-scheme{height:340px}
#projects .section-footer{margin-top:22px;padding-top:10px;text-align:center}}
@media(max-width:380px){
#projects{padding-inline:13px}
#projects .project-copy h3{font-size:25px}
#projects .screen,#projects .bot-scheme{height:300px}
#projects .project-facts>div{grid-template-columns:84px minmax(0,1fr);gap:10px}
#projects .bot-scheme{padding:15px}
#projects .chat-message{font-size:10px}
#projects .zoom-extra{display:none}}
@media(prefers-reduced-motion:reduce){
#projects, #projects *{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:760px){
#projects .project-tabs{display:flex}
#projects .project-tab{flex:0 0 130px}}
#projects .section-heading h2::before{content:"";display:block;aspect-ratio:2194/570;background:var(--chalk);mask:url("assets/projects/projects-brush-title.png") center/100% auto no-repeat}
#projects .section-heading h2:after{content:"";position:absolute;left:-2px;width:104%;bottom:-6px;height:32px;background:var(--green);mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20720%20180%22%20preserveAspectRatio%3D%22none%22%3E%0A%20%20%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M29%20174C65%20163%20105%20155%20150%20148L179%20143%20211%20140%20241%20138%20263%20136%20280%20137%20310%20133%20340%20130%20362%20129%20392%20126%20420%20124%20443%20124%20471%20121%20496%20120%20524%20117%20548%20117%20575%20115%20602%20114%20628%20112%20652%20112%20681%20110%20714%20108C670%20116%20628%20119%20582%20123L554%20125%20528%20128%20502%20129%20478%20132%20453%20133%20429%20135%20404%20138%20379%20139%20356%20143%20331%20143%20307%20147%20282%20148%20260%20151%20239%20151%20213%20155%20190%20157%20169%20160%20146%20163%20125%20165%20103%20166%2079%20169%2056%20170Z%22%2F%3E%0A%3C%2Fsvg%3E") 0 0/100% 100% no-repeat;pointer-events:none}

/* Keep project actions independent from the site's illustrated hero buttons. */
#projects .button{font-family:Nunito,sans-serif;white-space:normal;flex:0 1 auto;width:auto;border:0;letter-spacing:normal;box-shadow:none}
#projects .button::before,#projects .button::after{content:none}
#projects .close{min-width:44px;min-height:44px}
