/* Home composition from Addy's supplied reference. */
main#home .hero{min-height:300px;display:grid;grid-template-columns:36% minmax(0,1fr);padding:0;border-bottom:1px solid var(--line)}
main#home .hero-copy{grid-column:1;grid-row:1;width:auto;max-width:none;padding:24px 32px;z-index:1}
main#home .hero-copy h1{font-size:clamp(1.7rem,2.6vw,3rem);line-height:1.1;letter-spacing:-.055em}
main#home .hero-copy h1 .title-line{white-space:normal}
main#home .hero-copy p{font-size:1rem;line-height:1.5;max-width:470px;margin-bottom:0}
main#home .hero-media{position:relative;inset:auto;grid-column:2;grid-row:1;min-width:0;background-position:center}
main#home .hero-media:before{content:none}
main#home .hero-card{width:205px;right:32px;border-radius:6px;padding:15px}
main#home .hero-card li{font-size:.875rem;gap:9px;padding:5px 0}
main#home .home-work-layout{display:grid;grid-template-columns:minmax(0,34%) minmax(0,1fr);gap:20px;padding:10px 26px 0;align-items:start}
main#home .prototype-featured{padding:0 12px 0 0;border-right:1px solid var(--line);min-width:0;scroll-margin-top:90px}
main#home .prototype-heading,main#home .filter-intro{background:#075866;color:#fff;border-radius:3px;padding:13px 14px;margin-bottom:9px}
main#home .prototype-heading h2,main#home .filter-intro h2{color:#fff;font:800 1rem/1.3 Manrope,sans-serif;letter-spacing:.015em;margin:0 0 12px;text-transform:uppercase}
main#home .prototype-intro,main#home .filter-intro p{color:#e0eeee;font-size:.875rem;line-height:1.4;margin:0;max-width:none}
main#home .prototype-grid{grid-template-columns:minmax(0,1fr);gap:10px}
main#home .prototype-card{border:1px solid #ccd8d9;border-top:2px solid #bbcbd0;padding:14px 14px 7px;border-radius:0;box-shadow:0 4px 12px #0c203308}
main#home .prototype-top{font-size:.75rem;gap:6px;margin-bottom:0;line-height:1.4}
main#home .prototype-image{display:block;width:100%;aspect-ratio:3.1;object-fit:cover;margin-bottom:12px}
main#home .prototype-card h3{font-size:clamp(1.5rem,1.8vw,2rem);margin:0 0 5px}
main#home .prototype-question{font-size:.94rem;line-height:1.35;margin:0 0 5px}
main#home .prototype-scope{font-size:.875rem;line-height:1.4;margin:0 0 10px}
main#home .prototype-main-link{padding:8px 11px;font-size:.875rem;margin-bottom:0}
main#home .work-explorer{display:block;padding:0;border:0;min-width:0;scroll-margin-top:90px}
main#home .explorer-sidebar,main#home .explorer-evidence{display:block;border:0;padding:0;min-width:0}
main#home .filter-bar{display:block;padding:0;border:0}
main#home .explorer-heading{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:10px;align-items:stretch}
main#home .filter-intro{display:block;min-width:0;margin:0}
main#home .filter-intro-copy{background:none;padding:0}
main#home .focus-description{margin:0;padding:10px;background:#eaf2f2;font-size:.875rem;border-left:2px solid #087487}
main#home .focus-description[hidden]{display:none}
main#home .explorer-heading:not(:has(.focus-description:not([hidden]))){grid-template-columns:1fr}
main#home .filter-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin:10px 0 18px}
main#home .filter-family{margin:0;padding:0;border:0;min-width:0}
main#home .filter-family legend{font-size:.8rem;letter-spacing:0;padding-bottom:7px}
main#home .filter-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
main#home .filter-buttons button,main#home .filter-buttons button:last-child{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;padding:10px 8px;min-height:110px;border:0;border-right:1px solid #e1e7e7;border-radius:0;background:transparent;color:#426374;text-align:center;font-size:.875rem;line-height:1.25}
main#home .filter-buttons button:last-child{border:0}
main#home .filter-buttons button svg.icon{width:18px;height:18px;margin:0}
main#home .filter-buttons button:hover,main#home .filter-buttons button[aria-pressed=true]{background:#e0e9e9;color:#315b70;border-radius:3px}
main#home .filter-buttons button[aria-pressed=true] svg.icon{color:#087487!important}
main#home .filter-summary{font-size:.875rem}
main#home .work-results{margin-top:9px;font-size:.875rem}
main#home .featured-layout{display:block;margin:0}
main#home .explore-group{padding-bottom:0}
main#home .explore-group h2{display:inline;font-size:.875rem;margin:0 8px 0 0;letter-spacing:0}
main#home .use-case-intro,main#home .related-intro{display:inline;font-size:.875rem;margin:0;line-height:1.45}
main#home .use-case-grid,main#home .related-group .explore-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
main#home .use-case-card.prototype-case{min-height:145px;padding:14px;border:1px solid #ccd8d9;border-top:2px solid #ccd8d9;border-radius:2px;gap:7px;font-size:.875rem}
main#home .use-case-card .use-case-parent{font-size:.75rem;line-height:1.3}
main#home .use-case-card strong{font-size:1.06rem}
main#home .related-group{margin-top:20px}
main#home .related-group .supporting-card{min-height:175px;padding:14px;border:1px solid #e6e5df;border-radius:2px;background:#faf9f5}
main#home .industry-pill{background:none;padding:0;border-radius:0;font-size:.75rem;letter-spacing:0}
main#home .company-name{font-size:.75rem;white-space:normal}
main#home .card-meta{flex-wrap:nowrap;gap:5px;margin-bottom:10px}
main#home .supporting-card h3{font-size:1.04rem;line-height:1.25;margin-bottom:7px}
main#home .supporting-card p{font-size:.875rem;line-height:1.4;margin-bottom:12px}
main#home .card-action{font-size:.875rem}
main#home .about{padding:24px 32px 20px}
main#home .about-grid{grid-template-columns:1.12fr 1fr 1.05fr;gap:20px}
main#home .about-grid>img{height:180px;min-height:100%;object-fit:cover}
main#home .about-grid .focus{grid-column:auto;padding-top:4px}
main#home .about-copy h2{font-size:1.45rem}
main#home .about-copy p,main#home .about-grid .focus-grid p{font-size:.875rem}
main#home .about-grid .focus-grid h3{font-size:.875rem}
main#home .about-grid .focus-grid{gap:14px 10px}
html[data-theme=dark] main#home .prototype-card,html[data-theme=dark] main#home .use-case-card{background:#1d303e;border-color:#435a68}
html[data-theme=dark] main#home .prototype-card h3,html[data-theme=dark] main#home .use-case-card strong{color:#eaf1f2}
html[data-theme=dark] main#home .prototype-question,html[data-theme=dark] main#home .prototype-scope,html[data-theme=dark] main#home .prototype-case span{color:#beced6}
html[data-theme=dark] main#home .focus-description,html[data-theme=dark] main#home .filter-buttons button[aria-pressed=true],html[data-theme=dark] main#home .filter-buttons button:hover{background:#294351;color:#d4e6e8}
html[data-theme=dark] main#home .filter-buttons button{color:#beced6;border-color:#344653}
html[data-theme=dark] main#home .related-group .supporting-card{background:#172b37;border-color:#344653}
@media(max-width:1250px){main#home .home-work-layout{grid-template-columns:minmax(0,33%) minmax(0,1fr);gap:15px;padding:12px 20px}main#home .use-case-grid,main#home .related-group .explore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}main#home .filter-controls{grid-template-columns:1fr}main#home .filter-buttons button{min-height:90px}main#home .about-grid{grid-template-columns:1fr 1fr}main#home .about-grid .focus{grid-column:1/-1}main#home .hero-copy{padding:25px}main#home .hero-card{right:20px;width:190px}}
@media(max-width:900px){main#home .hero{grid-template-columns:52% 1fr}main#home .home-work-layout{grid-template-columns:1fr}main#home .prototype-featured{border:0;padding:0}main#home .prototype-grid{grid-template-columns:repeat(2,minmax(0,1fr))}main#home .filter-controls{grid-template-columns:repeat(2,minmax(0,1fr))}main#home .work-explorer{margin-top:12px}}
@media(max-width:760px){main#home .hero{display:flex;padding:0}main#home .hero-media{order:0;height:210px;min-height:210px;flex:none;width:100%}main#home .hero-copy{order:1;width:100%;padding:24px 20px}main#home .hero-copy h1{font-size:clamp(1.8rem,6vw,2.8rem)}main#home .hero-card{top:auto;bottom:14px;right:14px;transform:none;width:min(260px,75%)}main#home .hero-card .impact-compact{display:flex}main#home .home-work-layout{padding:10px 20px}main#home .prototype-grid{grid-template-columns:1fr}main#home .filter-controls{grid-template-columns:1fr}main#home .explorer-heading{grid-template-columns:1fr}main#home .use-case-grid,main#home .related-group .explore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}main#home .about{padding:20px}main#home .about-grid{display:flex;flex-direction:column}main#home .about-grid>img{height:190px;min-height:0}main#home .about-grid .focus{width:100%}main#home .prototype-image{aspect-ratio:2.8}main#home .filter-buttons button,main#home .filter-buttons button:last-child{border:0!important;padding:10px 8px;min-height:115px}}
@media(max-width:480px){main#home .use-case-grid,main#home .related-group .explore-grid{grid-template-columns:1fr}main#home .use-case-card.prototype-case,main#home .related-group .supporting-card{min-height:0}main#home .use-case-action{padding-top:12px}main#home .filter-buttons{grid-template-columns:1fr}main#home .filter-buttons button,main#home .filter-buttons button:last-child{display:grid;grid-template-columns:22px minmax(0,1fr);grid-template-rows:auto auto;text-align:left;column-gap:8px;min-height:0;padding:12px;border-bottom:1px solid var(--line)!important}main#home .filter-buttons button svg.icon{grid-column:1;grid-row:1/3}main#home .filter-title{grid-column:2;grid-row:1}main#home .filter-summary{grid-column:2;grid-row:2}}

/* Keep explanation and result controls together beside the introduction. */
main#home .explorer-heading>.filter-intro{grid-column:1;grid-row:1}
main#home .explorer-heading>.focus-description{grid-column:2;grid-row:1;min-width:0;display:flex;flex-direction:column;gap:5px}
main#home .explorer-heading>.focus-description[hidden]{display:none}
main#home .focus-description .work-results{margin-top:auto;padding:8px 0 0;background:transparent;border-top:1px solid #cbdcde;gap:8px 12px}
main#home .focus-description .work-results[hidden]{display:none}
main#home .focus-description #clear-filters{font-size:.875rem}
html[data-theme=dark] main#home .focus-description .work-results{border-color:#526b78;color:#d4e6e8}
@media(max-width:760px){main#home .explorer-heading>.focus-description{grid-column:1;grid-row:2}main#home .focus-description .work-results{margin-top:7px}}

/* Quiet case-study heading and selected-filter context. */
main#home .filter-intro{background:transparent;color:var(--ink);border-radius:0;padding:9px 0 12px;margin:0;box-shadow:none}
main#home .filter-intro h2{color:var(--ink);font-size:.95rem;margin-bottom:7px}
main#home .filter-intro p{color:#586b7b;line-height:1.45}
main#home .explorer-heading{gap:18px;border-bottom:1px solid var(--line);padding-bottom:5px}
main#home .explorer-heading>.focus-description{background:transparent;border-left:1px solid #d8e0e0;padding:9px 0 12px 16px;box-shadow:none;border-radius:0;color:#586b7b;font-size:.875rem;gap:5px}
main#home .focus-description strong{font-size:.75rem;line-height:1.4;color:#54717c;letter-spacing:.025em;margin:0}
main#home .focus-description .work-results{margin-top:6px;padding:0;border:0;font-size:.8rem;gap:8px 14px;color:#586b7b}
main#home .focus-description #result-count{font-weight:600;color:#54717c}
main#home .focus-description #clear-filters{font-size:.8rem;font-weight:500;color:#54717c}
html[data-theme=dark] main#home .filter-intro,html[data-theme=dark] main#home .explorer-heading>.focus-description{background:transparent;color:#bdcdd5;border-color:#344653}
html[data-theme=dark] main#home .filter-intro h2{color:#eaf1f2}
html[data-theme=dark] main#home .filter-intro p,html[data-theme=dark] main#home .focus-description strong,html[data-theme=dark] main#home .focus-description #result-count,html[data-theme=dark] main#home .focus-description #clear-filters{color:#bdcdd5}
@media(max-width:760px){main#home .explorer-heading{gap:4px}main#home .explorer-heading>.focus-description{border-left:0;border-top:1px solid var(--line);padding:10px 0}}
