.directory-page{--dir-surface:var(--white);--dir-border:color-mix(in srgb,var(--ink) 12%,transparent);padding-top:12px;padding-bottom:40px;max-width:1320px;margin:auto}
.directory-page *{min-width:0}
.directory-heading{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:20px 0 28px;margin-bottom:28px;border-bottom:1px solid var(--dir-border)}
.directory-kicker{display:block;font:10px/1.5 monospace;letter-spacing:.12em;color:var(--muted)}
.directory-heading h1{font-size:clamp(32px,3.2vw,46px);font-weight:650;line-height:1.4;letter-spacing:-.045em;margin:10px 0}
.directory-heading h1:before,.directory-page h2:before{display:none}
.directory-heading h1>span{color:var(--yellow)}
.directory-heading p{font-size:14px;line-height:1.8;color:var(--muted);margin:0;max-width:680px}
.directory-total{display:flex;flex-direction:column;align-items:flex-end;border-left:1px solid var(--dir-border);padding-left:32px;flex-shrink:0}
.directory-total strong{font:500 44px/1.2 'Segoe UI',sans-serif;letter-spacing:-.04em}
.directory-total>span{font-size:11px;color:var(--muted);margin-top:6px}
.directory-arrow{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border:1px solid var(--dir-border);border-radius:50%;font:21px/1 Arial;transition:background .18s,transform .18s}
.directory-page a:hover .directory-arrow{background:var(--yellow);color:#191919;border-color:var(--yellow);transform:translate(2px,-2px)}
.directory-page a:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}
.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.tool-tile{background:var(--dir-surface);border:1px solid var(--dir-border);border-radius:18px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s,border-color .2s}
.tool-tile:hover{border-color:color-mix(in srgb,var(--ink) 35%,transparent);box-shadow:0 12px 30px #0000000a}
.tool-visual{position:relative;height:155px;margin:10px 10px 0;border-radius:11px;overflow:hidden;display:flex;align-items:center;padding:22px;background:#e8ebdf;color:#26352b}
.tool-promptpay .tool-visual{background:#f6db4b;color:#302d14}.tool-qr .tool-visual{background:#242b31;color:#f4f3ec}
.tool-visual:after{content:'';position:absolute;width:220px;height:220px;border:1px solid currentColor;opacity:.12;border-radius:50%;right:-50px;top:-70px;pointer-events:none}
.tool-visual-label{position:absolute;top:17px;left:20px;font:9px monospace;letter-spacing:.14em;opacity:.65}
.tool-symbol{display:grid;place-items:center;width:62px;height:62px;margin-top:12px;border-radius:18px;background:#ffffff38;z-index:1}
.tool-symbol svg{width:36px;height:36px}
.tool-visual-caption{position:absolute;bottom:22px;right:18px;font-size:12px;max-width:50%;text-align:right;line-height:1.65}
.tool-body{padding:24px;display:flex;flex-direction:column;flex:1}
.tool-body>.directory-kicker{font-size:9px}
.tool-body h2{font-size:23px;line-height:1.5;font-weight:650;letter-spacing:-.035em;margin:10px 0}
.tool-body p{font-size:13px;color:var(--muted);line-height:1.8;margin:0 0 20px}
.directory-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto;margin-bottom:22px}
.directory-tags>span{padding:4px 8px;background:var(--paper);border:1px solid var(--dir-border);border-radius:5px;font-size:10px;color:var(--muted)}
.tool-action{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--dir-border);padding-top:16px;font-size:13px;font-weight:600}
.directory-note{display:flex;align-items:center;gap:14px;margin-top:24px;padding:16px 20px;background:var(--dir-surface);border:1px solid var(--dir-border);border-radius:10px}
.directory-note>svg{width:24px;height:24px;flex-shrink:0;color:var(--muted)}
.directory-note strong{font-size:12px;font-weight:600}.directory-note p{font-size:11px;color:var(--muted);margin:3px 0 0;line-height:1.6}
.project-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.project-entry{display:flex;align-items:flex-start;gap:20px;background:var(--dir-surface);border:1px solid var(--dir-border);border-radius:16px;padding:26px;transition:border-color .2s}
.project-entry:hover{border-color:color-mix(in srgb,var(--ink) 40%,transparent)}
.project-symbol{display:grid;place-items:center;width:58px;height:58px;border-radius:15px;background:#f3df83;color:#403814;flex-shrink:0}
.project-symbol svg{width:29px;height:29px}.project-symbol-leaf,.project-symbol-harvest{background:#e1eade;color:#37563a}.project-symbol-lab{background:#e4e1f0;color:#5b497f}.project-symbol-box{background:#dfe8ed;color:#355267}
.project-entry-copy{flex:1}.project-entry-copy>.directory-kicker{font-size:9px;margin:2px 0 10px}
.project-entry h2{font-size:23px;line-height:1.4;font-weight:650;letter-spacing:-.03em;margin:0 0 10px}
.project-entry p{font-size:13px;line-height:1.8;margin:0;color:var(--muted);overflow-wrap:anywhere}
.project-meta{display:block;border-top:1px solid var(--dir-border);padding-top:13px;margin-top:20px;font-size:10px;color:var(--muted)}
.project-entry-end{align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:20px}.project-order{font:11px monospace;color:var(--muted)}
.portfolio-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}
.portfolio-nav>a{display:flex;align-items:center;gap:10px;padding:8px 13px;border:1px solid var(--dir-border);border-radius:8px;background:var(--dir-surface);font-size:12px}
.portfolio-nav>a.is-current{background:var(--ink);color:var(--paper)}
.portfolio-nav b{font:10px monospace;opacity:.65}.portfolio-nav a:hover{border-color:var(--ink)}
.portfolio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.portfolio-tile{background:var(--dir-surface);border:1px solid var(--dir-border);border-radius:15px;overflow:hidden}
.portfolio-cover{position:relative;display:block;margin:10px 10px 0;background:#efeee7;border-radius:8px;overflow:hidden}
.portfolio-cover>img{width:100%;height:180px;object-fit:contain;transition:transform .25s}.portfolio-cover:hover>img{transform:scale(1.035)}
.portfolio-cover-tag{position:absolute;left:12px;bottom:12px;font:8px monospace;letter-spacing:.1em;padding:5px 8px;border-radius:4px;background:#fffE;color:#222}
.portfolio-placeholder{display:grid;place-items:center;height:180px;color:#494b42}.portfolio-placeholder svg{width:52px;height:52px}
.portfolio-body{padding:18px 20px}.portfolio-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.portfolio-title h2{font-size:21px;font-weight:650;line-height:1.5;margin:0 0 4px;letter-spacing:-.025em}.portfolio-title div>span{font-size:11px;color:var(--muted)}
.portfolio-samples{display:grid;margin-top:16px;border-top:1px solid var(--dir-border)}
.portfolio-samples>a{display:flex;align-items:center;gap:9px;font-size:11px;padding-top:10px}.portfolio-samples img{width:28px;height:28px;border-radius:4px;object-fit:cover;flex-shrink:0}.portfolio-samples a>span:first-of-type{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portfolio-samples a>span:last-child{color:var(--muted)}.portfolio-samples>p{font-size:12px;color:var(--muted)}
@media(max-width:1050px){.tool-grid{gap:14px}.tool-body{padding:18px}.tool-body h2{font-size:20px}.project-entry{padding:20px;gap:14px}.project-entry h2{font-size:21px}.project-symbol{width:44px;height:44px}.portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.directory-heading{gap:18px;padding-top:10px}.directory-heading h1{font-size:30px}.directory-heading p{font-size:12px}.directory-total{padding-left:16px}.directory-total strong{font-size:32px}.directory-total>span{font-size:10px}.project-directory{grid-template-columns:1fr}.tool-grid{grid-template-columns:1fr}.tool-tile{display:grid;grid-template-columns:130px minmax(0,1fr)}.tool-visual{height:auto;min-height:210px;margin:8px 0 8px 8px;flex-direction:column;justify-content:center;padding:16px}.tool-visual-label{font-size:8px;top:15px;left:13px}.tool-symbol{margin-top:0;width:54px;height:54px}.tool-visual-caption{position:static;max-width:none;text-align:center;font-size:11px;margin-top:18px}.tool-body{padding:18px}.tool-body>.directory-kicker{display:none}.tool-body h2{font-size:20px;margin:0 0 8px}.tool-body p{font-size:12px;margin-bottom:12px}.directory-tags{margin-bottom:14px}.tool-action{padding-top:10px}.portfolio-grid{gap:14px}.portfolio-body{padding:15px}.portfolio-title h2{font-size:18px}.portfolio-cover>img{height:150px}.portfolio-title .directory-arrow{width:28px;height:28px}}
@media(max-width:480px){.directory-heading h1{font-size:27px}.directory-total{display:none}.directory-kicker{font-size:9px}.portfolio-grid{grid-template-columns:1fr}.portfolio-tile{display:grid;grid-template-columns:110px minmax(0,1fr)}.portfolio-cover{margin:8px 0 8px 8px;display:flex;align-items:center}.portfolio-cover>img{height:130px}.portfolio-cover-tag{font-size:7px;left:5px;bottom:7px;padding:4px}.portfolio-placeholder{height:130px}.portfolio-title h2{font-size:17px}.portfolio-samples{margin-top:10px}.portfolio-body{padding:15px 12px}.portfolio-samples img{width:23px;height:23px}.portfolio-nav{gap:6px}.portfolio-nav>a{padding:7px 9px;font-size:11px}.project-entry{padding:18px;gap:12px}.project-entry h2{font-size:21px}.project-entry p{font-size:12px}.project-meta{line-height:1.7}.tool-tile{grid-template-columns:100px minmax(0,1fr)}.tool-visual{padding:12px}.tool-visual-label{font-size:7px;left:10px}.tool-visual-caption{font-size:10px}.tool-body{padding:15px}.tool-body h2{font-size:18px}.directory-tags>span{font-size:9px}.directory-note{padding:14px}}
@media(prefers-reduced-motion:reduce){.directory-page *, .directory-page *:before,.directory-page *:after{transition:none!important}}

/* Project hub: imagery and filters share the site's surface and accent colours. */
.project-hub-toolbar{display:flex;align-items:center;gap:14px;padding:12px 0 26px}
.project-hub-search{display:flex;align-items:center;gap:10px;flex:1;border:1px solid var(--dir-border);border-radius:12px;background:var(--white);padding:0 14px;min-width:180px}
.project-hub-search svg{width:20px;height:20px;flex-shrink:0;color:var(--muted)}
.project-hub-search input{width:100%;border:0;background:transparent;color:var(--ink);padding:13px 0;box-shadow:none;outline-offset:2px}
.project-hub-search:focus-within{outline:2px solid var(--yellow);outline-offset:2px}
.project-hub-filters{display:flex;gap:8px;flex-wrap:wrap}
.project-hub-filters button,.project-hub-empty button{border:1px solid var(--dir-border);border-radius:10px;padding:12px 16px;background:var(--white);color:var(--ink);font:inherit;font-size:12px;cursor:pointer}
.project-hub-filters button[aria-pressed=true]{background:var(--yellow);border-color:var(--yellow);color:#191919;font-weight:650}
.project-hub-filters small{margin-left:9px;opacity:.65}
.project-hub-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px}
.project-hub-heading h1{font-size:clamp(28px,3.3vw,44px);line-height:1.4;letter-spacing:-.04em;margin:8px 0}
.project-hub-heading h1>span{color:var(--yellow)}
.project-hub-heading p{margin:0;color:var(--muted);font-size:13px;line-height:1.8}
.project-hub-count{white-space:nowrap;font-size:13px}.project-hub-count strong{font-size:26px;margin-right:5px}
.project-hub-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px}
.project-hub-card{grid-column:span 2;display:flex;flex-direction:column;border:1px solid var(--dir-border);border-radius:16px;overflow:hidden;background:var(--white);color:var(--ink);text-decoration:none;transition:border-color .2s,box-shadow .2s}
.project-hub-card:nth-child(-n+2){grid-column:span 3}
.project-hub-card:hover{border-color:var(--yellow);box-shadow:0 8px 26px #0000000d}
.project-hub .project-hub-image{aspect-ratio:1.8;overflow:hidden;background:#f2efe7}
.project-hub .project-hub-image img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0;padding:0;margin:0;max-width:none;transition:transform .3s}
.project-hub-card:hover .project-hub-image img{transform:scale(1.025)}
.project-hub-copy{display:flex;flex-direction:column;flex:1;padding:20px 22px 14px}
.project-hub-copy h2{font-size:clamp(21px,2vw,28px);margin:6px 0;line-height:1.4;letter-spacing:-.025em}
.project-hub-copy p{color:var(--muted);font-size:13px;line-height:1.8;margin:0 0 8px}
.project-hub-meta{color:var(--muted);font-size:11px;line-height:1.8;margin-bottom:16px}
.project-hub-action{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;border-top:1px solid var(--dir-border);padding-top:12px;font-size:13px;font-weight:550}
.project-hub-grid.is-filtered{grid-template-columns:repeat(3,minmax(0,1fr))}.project-hub-grid.is-filtered .project-hub-card{grid-column:auto}
.project-hub [hidden]{display:none!important}
.project-hub-empty{padding:48px 20px;text-align:center;border:1px dashed var(--dir-border);border-radius:16px;background:var(--white)}
.project-hub-empty h2{font-size:20px}.project-hub-empty p{color:var(--muted)}
.project-hub button:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
@media(max-width:1050px){.project-hub-toolbar{flex-wrap:wrap}.project-hub-search{flex-basis:100%}.project-hub-grid,.project-hub-grid.is-filtered{grid-template-columns:repeat(2,minmax(0,1fr))}.project-hub-card,.project-hub-card:nth-child(-n+2){grid-column:auto}}
@media(max-width:600px){.project-hub-grid,.project-hub-grid.is-filtered{grid-template-columns:minmax(0,1fr);gap:16px}.project-hub-heading{align-items:flex-start;flex-wrap:wrap;gap:8px}.project-hub-count strong{font-size:20px}.project-hub-filters{gap:6px}.project-hub-filters button{padding:9px 11px;font-size:11px}.project-hub-copy{padding:18px 18px 12px}.project-hub-toolbar{padding-bottom:22px}.project-hub-heading h1{font-size:30px}}
@media(prefers-reduced-motion:reduce){.project-hub-card:hover .project-hub-image img{transform:none}}
