/* Home portfolio: an aligned editorial grid, never a staggered/masonry layout. */
/* The masthead is in normal flow; anchors no longer need its old 110px offset. */
html:has(body.home){scroll-padding-top:24px}
.home{--portfolio-gap:24px;--portfolio-radius:12px;--portfolio-body-height:260px}
.home .service-section{padding-top:96px}
.home .service-section>.section-top,.home .work-section .section-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:36px;margin-bottom:32px;padding-bottom:28px;border-bottom:1px solid var(--line)}
.home .service-section .section-heading,.home .work-section .section-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.75fr);align-items:end;gap:20px 32px}
.home .service-section .section-heading>.eyebrow,.home .work-section .section-heading>.eyebrow{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin:0;color:#c5c4bb;font-size:10px;letter-spacing:.14em}
.home .section-heading>.eyebrow>span{display:inline-flex;justify-content:center;align-items:center;min-width:36px;height:28px;padding:0 8px;border:1px solid #f1d60045;border-radius:6px;background:#f1d6000a;color:var(--yellow);font-variant-numeric:tabular-nums;letter-spacing:0}
.home .service-section h2,.home .work-section h2{font-size:clamp(38px,3.5vw,58px);line-height:1.04;letter-spacing:-.045em}
.home .service-section .section-description,.home .work-section .section-description{margin:0;max-width:350px;font-size:13px;line-height:1.8;color:#b9b8b0}
.home .service-section>.section-top>.text-link,.home .work-section .section-top>.text-link{gap:16px;padding:12px 18px;border:1px solid #414139;border-radius:999px;background:#181816;font-size:10px;line-height:1.5;transition:border-color .2s,color .2s}
.home .section-top>.text-link:hover{border-color:var(--yellow);color:var(--yellow)}
.home .home-projects,.home .home-categories,.home .home-works{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:var(--portfolio-gap);align-items:stretch;column-count:auto;margin:0}
.home .home-categories{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:1280px){.home .home-categories{grid-template-columns:repeat(4,minmax(0,1fr))}}
.home .home-projects .home-card,.home .home-categories .home-card,.home .home-works .home-card{display:flex;flex-direction:column;min-width:0;margin:0;height:100%;overflow:hidden;border:1px solid #34342e;border-radius:var(--portfolio-radius);background:#151513;text-decoration:none;break-inside:auto;transition:border-color .2s,box-shadow .2s}
.home .home-card:hover,.home .home-card:focus-within{border-color:#8e873b;box-shadow:0 12px 32px #0003}
.home .home-card .home-card-media{display:block;position:relative;flex:none;aspect-ratio:4/3;width:100%;height:auto;margin:0;padding:0;overflow:hidden;background:#22221e;border:0;border-bottom:1px solid #34342e;border-radius:0;text-align:left;isolation:isolate}
.home .home-project-card .video-open{cursor:pointer}
.home .home-card .home-card-media::after{content:"";position:absolute;inset:45% 0 0;pointer-events:none;background:linear-gradient(0deg,#000a,transparent);z-index:0}
.home .home-card .home-card-media img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:50% 35%;filter:none;transition:transform .4s}
.home .home-card:hover .home-card-media img{transform:scale(1.025)}
.home .home-card-media-label{position:absolute;z-index:1;left:18px;right:18px;bottom:16px;display:flex;align-items:center;justify-content:space-between;color:#fff;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.home .home-card-play{position:absolute;z-index:1;top:50%;left:50%;display:grid;place-items:center;width:60px;height:60px;transform:translate(-50%,-50%);padding-left:3px;border:1px solid #ffffffb0;border-radius:50%;background:#111a;color:#fff;font-size:17px;backdrop-filter:blur(8px);transition:background .2s,color .2s}
.home .video-open:hover .home-card-play,.home .video-open:focus-visible .home-card-play{background:var(--yellow);border-color:var(--yellow);color:#111}
.home .home-card .home-card-content{display:flex;flex:1;flex-direction:column;gap:16px;min-height:var(--portfolio-body-height);padding:24px}
.home .home-project-card .home-card-content{min-height:0}
.home .home-card-badges{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.home .portfolio-badge{display:inline-flex;align-items:center;max-width:100%;min-height:25px;padding:5px 9px;border:1px solid #3d3d35;border-radius:5px;background:#20201c;color:#d3d2c9;font-size:9px;font-weight:600;line-height:1.4;letter-spacing:.04em;overflow-wrap:anywhere}
.home .portfolio-badge-accent{background:#f1d6000c;border-color:#f1d60038;color:#f4e779}
.home .home-card .home-card-title{margin:0;color:var(--text);font-size:clamp(19px,1.5vw,24px);font-weight:600;line-height:1.3;letter-spacing:-.025em;overflow-wrap:anywhere}
.home .home-card-title a{color:inherit;text-decoration:none}
.home .home-card-title a:hover{color:var(--yellow)}
.home .home-card .home-card-description{margin:0;color:#b6b5ad;font-size:12px;line-height:1.75;max-width:none}
.home .home-card .home-card-footer{margin-top:auto;padding-top:16px;border-top:1px solid #34342e}
.home .home-card-cta{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;color:#e9e7df;font-size:10px;font-weight:700;line-height:1.5;letter-spacing:.05em;text-transform:uppercase}
.home .home-card-arrow{display:grid;flex:none;place-items:center;width:28px;height:28px;border:1px solid #48483e;border-radius:50%;font-size:16px;font-weight:400;color:var(--yellow);transition:background .2s,color .2s}
.home .home-card:hover .home-card-arrow{background:var(--yellow);border-color:var(--yellow);color:#111}
.home .home-card a:focus-visible,.home .home-card button:focus-visible,.home a.home-card:focus-visible{outline:2px solid var(--yellow);outline-offset:-4px}
.home .work-section{margin-top:96px;padding-block:80px 48px;background:#10100e;border-block:1px solid #292925}
.home .home-work-card .home-card-media{background:#1e1e1b}
.home .home-work-card .home-card-media img{object-fit:contain;object-position:center;padding:16px}
.home .home-work-card:hover .home-card-media img{transform:none}
.home .home-work-card .home-card-media::after{display:none}
.home .section-footnote{margin-top:24px;font-size:10px}
@media(max-width:1250px){.home .service-section .section-heading,.home .work-section .section-heading{display:block}.home .service-section .section-heading>.eyebrow,.home .work-section .section-heading>.eyebrow{margin-bottom:18px}.home .service-section .section-description,.home .work-section .section-description{margin-top:18px;max-width:500px}}
@media(max-width:1023px){.home{--portfolio-gap:20px}.home .home-projects,.home .home-categories,.home .home-works{grid-template-columns:repeat(2,minmax(0,1fr))}.home .service-section{padding-top:72px}.home .work-section{margin-top:72px;padding-top:64px}.home .service-section>.section-top,.home .work-section .section-top{gap:24px}.home .home-card .home-card-content{padding:22px}}
@media(max-width:600px){.home{--portfolio-gap:20px;--portfolio-body-height:0px}.home .home-projects,.home .home-categories,.home .home-works{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto}.home .service-section{padding-top:60px}.home .service-section>.section-top,.home .work-section .section-top{display:block;padding-bottom:24px;margin-bottom:24px}.home .service-section h2,.home .work-section h2{font-size:42px}.home .section-top>.text-link{margin-top:24px}.home .home-card .home-card-content{gap:14px;padding:22px;min-height:230px}.home .home-project-card .home-card-content{min-height:0}.home .home-card .home-card-title{font-size:22px}.home .home-card .home-card-description{font-size:13px}.home .portfolio-badge{font-size:10px}.home .home-card .home-card-footer{margin-top:8px}.home .work-section{margin-top:60px;padding-block:56px 36px}.home .section-footnote{font-size:9px;line-height:1.8}}
@media(prefers-reduced-motion:reduce){.home .home-card,.home .home-card *{transition:none!important}.home .home-card:hover .home-card-media img{transform:none}}
/* Author cards have less copy: do not inherit the 260/230px service-card body. */
.home .home-works{grid-auto-rows:auto}
.home .home-work-card .home-card-content{flex:1;min-height:0;gap:12px;padding:18px 20px}
.home .home-work-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}
.home .home-work-code{flex-shrink:0;color:var(--muted);font-size:10px;letter-spacing:.03em}
.home .home-work-card .home-card-title{font-size:19px;line-height:1.35}
.home .home-work-card .home-card-footer{margin-top:auto;padding-top:0;border:0}
.home .home-work-card .home-card-cta{min-height:42px;padding:10px 14px;border:1px solid #555548;border-radius:6px;background:#1e1e19;transform:none;font-size:10px}
.home .home-work-card .home-card-cta:hover{border-color:var(--yellow);background:var(--yellow);color:#111}
.home .home-work-card .home-card-cta>span:first-child{font-size:inherit;line-height:inherit}
.home .home-work-card .home-card-cta>span:last-child{font-size:18px}
/* Project title leads the copy; a single button opens the complete project. */
.home .home-projects{grid-auto-rows:auto}
.home .home-project-card .home-card-media::after{display:none}
.home .home-project-card .home-card-content{min-height:0;gap:12px;padding:18px 20px}
.home .home-project-card .home-card-title{font-size:19px;line-height:1.35}
.home .home-project-card .home-card-footer{margin-top:auto;padding-top:0;border:0}
.home .home-project-card .home-card-cta{min-height:42px;padding:10px 14px;border:1px solid #555548;border-radius:6px;background:#1e1e19;transform:none;font-size:10px}
.home .home-project-card .home-card-cta:hover{border-color:var(--yellow);background:var(--yellow);color:#111}
.home .home-project-card .home-card-cta>span:first-child{font-size:inherit;line-height:inherit}
.home .home-project-card .home-card-cta>span:last-child{font-size:18px}
