.work-page { background:#f6f4f0; color:#191816; text-align:left; }
.work-heading,.work-gallery { padding-inline:clamp(22px,3.2vw,64px); max-width:2000px; margin:auto; }
.work-heading { padding-top:155px; padding-bottom:62px; }
.work-eyebrow { display:flex; justify-content:space-between; gap:20px; text-transform:uppercase; font-size:10px; font-weight:400; letter-spacing:.15em; border-top:1px solid #c9c3bb; padding-top:17px; }
.work-heading-row { display:flex; justify-content:space-between; align-items:flex-end; gap:40px; padding-top:32px; }
.work-heading h1 { font-size:clamp(76px,10vw,160px); line-height:.9; letter-spacing:-.065em; font-weight:400; margin:0; }
.work-heading h1 em { font-family:Georgia,'Times New Roman',serif; font-weight:400; color:var(--accent); letter-spacing:-.07em; }
.work-heading-note { max-width:370px; padding-bottom:5px; }
.work-star { font-size:50px; line-height:1; color:var(--accent); }
.work-heading-note p { margin:16px 0; font-size:15px; line-height:1.6; }
.work-heading-note p:first-of-type { font-size:27px; line-height:1.2; letter-spacing:-.025em; }
.work-heading-note a { font-size:12px; font-weight:400; border-bottom:1px solid; padding-bottom:4px; }
.work-tools { border-top:1px solid #c9c3bb; padding-top:22px; margin-bottom:28px; }
.work-filters { display:flex; gap:8px; flex-wrap:wrap; }
.work-tools button { font:400 12px/1.3 var(--font); cursor:pointer; color:#58534d; background:transparent; border:1px solid #d6d0c7; padding:10px 15px; border-radius:30px; transition:background .2s,color .2s; }
.work-tools button:hover { border-color:#6b1e23; color:#6b1e23; }
.work-filters button[aria-pressed=true] { background:var(--accent); color:white; border-color:var(--accent); }
.work-filters button span { margin-left:8px; opacity:.6; }
.work-secondary { display:flex; justify-content:space-between; gap:20px; align-items:center; padding-top:22px; }
.work-kinds { display:flex; gap:18px; }
.work-kinds button { border:0; border-radius:0; padding:0 0 5px; font-size:11px; }
.work-kinds button[aria-pressed=true] { color:#191816; border-bottom:1px solid #191816; }
.work-sort { display:flex; gap:12px; align-items:center; font-size:11px; }
#work-count { color:#78716a; margin-right:15px; }
.work-sort select { font:400 11px var(--font); border:0; color:#191816; background:transparent; padding:8px 0; max-width:150px; }
.work-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:48px 22px; }
.work-card { min-width:0; }
.work-card[hidden] { display:none; }
.work-card-link { display:block; color:inherit; text-decoration:none; }
.work-art { aspect-ratio:4/4.4; background:var(--tile); display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.work-screen { width:90%; box-shadow:0 15px 30px #0003; transform:translateY(0); transition:transform .45s; background:#fff; }
.work-browser { height:15px; display:flex; align-items:center; gap:3px; padding:0 6px; background:#f9f8f6; }
.work-browser i { width:3px; height:3px; border-radius:50%; background:#bbb7b0; }
.work-browser span { font:5px/1.2 Arial,sans-serif; color:#827d76; margin:auto; }
.work-screen img { display:block; width:100%; height:auto; aspect-ratio:1440/1050; object-fit:cover; object-position:top; }
.work-open { position:absolute; bottom:12px; right:13px; width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:#fff9; font-size:18px; transition:background .25s; }
.work-card-link:hover .work-screen { transform:translateY(-6px) scale(1.025); }
.work-card-link:hover .work-open { background:#fff; }
.work-card-meta { display:flex; justify-content:space-between; gap:8px; margin:17px 0 7px; font-size:9px; text-transform:uppercase; letter-spacing:.085em; color:#706960; line-height:1.4; }
.work-card h2 { font-size:clamp(19px,1.65vw,29px); font-weight:400; line-height:1.15; letter-spacing:-.035em; margin:0 0 10px; }
.work-description { font-size:12px; line-height:1.65; margin:0; color:#6a635c; }
.work-view { display:inline-block; font-size:10px; font-weight:400; margin-top:14px; border-bottom:1px solid #bfb7ad; padding-bottom:3px; }
.work-endnote { border-top:1px solid #c9c3bb; padding:25px 0 75px; margin-top:55px; display:flex; justify-content:space-between; gap:20px; font-size:13px; }
.work-endnote a { color:var(--accent); }
.work-empty { padding:60px 0; }
.work-page :focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
@media(min-width:1800px) { .work-grid { gap:60px 30px; } }
@media(max-width:1100px) { .work-grid { gap:36px 16px; } .work-heading-note { max-width:300px; } }
@media(max-width:900px) { .work-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .work-heading { padding-top:130px; } .work-eyebrow span:last-child { display:none; } .work-heading h1 { font-size:100px; } .work-heading-note { max-width:240px; } }
@media(max-width:600px) { .work-heading { padding-top:120px; padding-bottom:35px; } .work-heading-row { display:block; } .work-heading h1 { font-size:90px; } .work-heading-note { margin-top:28px; max-width:none; } .work-star { display:none; } .work-heading-note p:first-of-type { font-size:22px; } .work-heading-note p:first-of-type br { display:none; } .work-heading-note p { font-size:13px; } .work-filters { gap:6px; } .work-tools button { font-size:10px; padding:8px 11px; } .work-secondary { align-items:flex-start; flex-direction:column; gap:8px; } .work-kinds button { padding:0 0 5px; } .work-sort { width:100%; } #work-count { margin-right:auto; } .work-grid { gap:32px 12px; } .work-art { aspect-ratio:4/5; } .work-screen { width:94%; } .work-card h2 { font-size:20px; } .work-card-meta { display:block; font-size:8px; } .work-card-meta span+span { display:block; margin-top:4px; } .work-description { font-size:11px; } .work-endnote { flex-direction:column; } }
@media(max-width:380px) { .work-grid { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { .work-screen,.work-tools button,.work-open { transition:none; } }
/* Reset the legacy home mosaic's named tracks on this gallery. */
.work-page .work-grid { grid-template-areas:none; grid-template-rows:none; margin-top:0; }
@media(max-width:600px) { .work-heading-note p:first-of-type br { display:inline; } .work-heading-note p:first-of-type br::after { content:' '; } }
/* Consistent card rhythm: shared description space and aligned project links. */
.work-card { display:flex; flex-direction:column; }
.work-card-link { display:flex; flex-direction:column; flex:1; }
.work-card-meta { min-height:2.8em; }
.work-card h2 { min-height:2.3em; }
.work-description { min-height:8.25em; }
.work-view { align-self:flex-start; margin-top:auto; padding-top:14px; }
@media(max-width:600px) { .work-description { min-height:11.55em; } }
@media(max-width:380px) { .work-card h2,.work-card-meta,.work-description { min-height:0; } .work-view { margin-top:0; } }

/* Three deliberate desktop lines; natural wrapping on smaller screens. */
@media(min-width:1101px) { .work-copy-line { display:block; } .work-description { min-height:4.95em; } }

/* Local preview: responsive website outlines in the Work hero. */
.work-page .page-intro { position:relative; overflow:hidden; }
.work-page .page-intro .wrap { position:relative; z-index:1; }
.work-page .page-intro .page-lead { max-width:34rem; }
.work-device-art { position:absolute; right:var(--gutter); top:50%; transform:translateY(-35%); width:42%; max-width:620px; color:var(--paper); opacity:.62; pointer-events:none; }
.work-device-art svg { display:block; width:100%; overflow:visible; stroke:currentColor; stroke-width:1.2; stroke-linecap:round; stroke-linejoin:round; }
.device-desktop { animation:device-desktop-in 12s ease-in-out infinite; }
.device-tablet { animation:device-tablet-in 12s ease-in-out infinite; }
.device-phone { animation:device-phone-in 12s ease-in-out infinite; }
.device-content { animation:device-page-in 12s ease-in-out infinite; }
.device-signal { offset-path:path('M 285 62 C 290 150 170 160 115 245 C 180 200 410 200 490 252'); animation:device-signal-travel 12s ease-in-out infinite; }
@keyframes device-desktop-in { 0%,5%,100% { opacity:0; transform:translateY(12px); } 15%,90% { opacity:1; transform:translateY(0); } }
@keyframes device-tablet-in { 0%,12%,100% { opacity:0; transform:translate(-12px,10px); } 24%,90% { opacity:1; transform:translate(0,0); } }
@keyframes device-phone-in { 0%,20%,100% { opacity:0; transform:translate(12px,10px); } 32%,90% { opacity:1; transform:translate(0,0); } }
@keyframes device-page-in { 0%,28%,100% { opacity:0; } 42%,88% { opacity:.8; } }
@keyframes device-signal-travel { 0%,42% { opacity:0; offset-distance:0%; } 48% { opacity:1; } 72% { opacity:1; offset-distance:100%; } 80%,100% { opacity:0; offset-distance:100%; } }
@media(min-width:901px) { .work-page .page-intro .display { max-width:52%; } .work-page .page-intro .page-lead { max-width:43%; } }
@media(max-width:900px) { .work-device-art { width:36%; right:4%; opacity:.3; top:57%; } .work-page .page-intro .page-lead { max-width:58%; } }
@media(max-width:600px) { .work-device-art { width:220px; top:auto; bottom:26px; right:12px; transform:none; opacity:.28; } .work-page .page-intro .page-lead { max-width:100%; } .work-page .page-intro { padding-bottom:220px; } }
@media(prefers-reduced-motion:reduce) { .work-device-art * { animation:none!important; } .device-signal { display:none; } .device-content { opacity:.8; } }

/* Keep the Work introduction close to the header on tall desktop displays. */
@media(min-width:901px){.work-page .page-intro.fit-screen{height:auto;min-height:0;justify-content:flex-start;padding-top:calc(6.75rem + 3rem);padding-bottom:5rem}.work-device-art{right:max(var(--gutter),calc((100% - 84rem)/2));top:55%;transform:translateY(-35%);width:min(38%,34rem)}}
