.works-page .header nav a[aria-current="page"]:after{transform:scaleX(1)}
.works-hero{padding:32px var(--gutter) 0}
.works-title{margin:10px 0 72px;text-align:center}
.works-title>.eyebrow{margin:0 0 10px;letter-spacing:.2em}
.works-title h1{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(26px,5vw,76px);font-weight:400;letter-spacing:.025em;line-height:.9}
.works-projects{position:relative;padding:72px var(--gutter) 120px}
.works-projects::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 1px;
  background: var(--line);
  box-shadow: 0 0 0 100vmax var(--line);
  clip-path: inset(0 -100vmax);
  pointer-events: none;
}
.works-tools{max-width:1400px;margin:0 auto 42px;display:grid;grid-template-columns:minmax(220px,360px) 1fr;align-items:center;gap:20px 32px}
.works-search{display:flex;align-items:center;gap:12px;border-bottom:1px solid #242a264d;padding:0 0 10px;color:var(--ink)}
.works-search input{width:100%;border:0;outline:0;background:transparent;color:inherit;font:inherit;font-size:13px}
.works-search input::placeholder{color:var(--muted);opacity:.8}
.works-search>span:last-child{font-size:24px;line-height:1}
.works-filters{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px}
.filter-group{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.works-filters button,.project-tag-chip{border:1px solid #242a2633;border-radius:0;background:transparent;color:var(--ink);font:inherit;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.works-filters button{padding:7px 12px;font-size:10px}
.works-filters button[aria-pressed="true"],.works-filters button:hover,.project-tag-chip:hover{border-color:#242a26;background:#242a26;color:var(--paper)}
.works-filters .filter-reset{border-color:transparent;text-decoration:underline;text-underline-offset:4px}
.works-result-count{grid-column:2;margin:0;text-align:right;color:var(--muted);font-size:11px}
.works-no-results{grid-column:1/-1;margin:12px 0 0;text-align:center;color:var(--muted);font-size:13px}
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:60px 24px;max-width:1400px;margin:0 auto}
.project-card{min-width:0}
.project-card[hidden]{display:none}
.project-card a{display:block}
.project-image{display:block;width:100%;aspect-ratio:1/1;overflow:hidden;background:#ebece6}
.project-card .project-image img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1);transition:transform 1s linear}
@media(hover:hover) and (pointer:fine){.project-card>a:hover .project-image img{transform:scale(1.1)}}
.project-card>a:focus-visible .project-image img{transform:scale(1.1)}
/* Keep the explicitly requested desktop hover zoom when system motion is reduced. */
@media(prefers-reduced-motion:reduce) and (hover:hover) and (pointer:fine){.project-card .project-image img{transition:transform 1s linear!important}}
.project-card h2{margin:14px 0 0;font-size:12px;font-weight:400;letter-spacing:.09em;line-height:1.7}
.project-tags{display:grid;gap:7px;margin-top:10px}
.project-tag-group{display:flex;flex-wrap:wrap;align-items:center;gap:5px}
.project-tag-chip{padding:4px 9px;font-size:9px;line-height:1.3}
.project-service-link{padding:0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:9px;line-height:1.5;cursor:pointer}
.project-service-link:hover{color:var(--accent)}
.project-service-separator{color:var(--muted);font-size:.8em}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.works-next{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(20px,4vw,64px);padding:66px var(--gutter);background:#242a26;color:var(--paper)}
.works-next a{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ffffff40;padding:18px 0;font-size:12px}
.works-next small{display:block;margin-bottom:8px;font-size:9px;letter-spacing:.16em;color:#b6beb1}
.works-next b{font-size:20px;font-weight:400;transition:transform .25s}
.works-next a:hover b{transform:translate(4px,-4px)}
.project-card>a{cursor:zoom-in}
.project-slideshow:not([open]){display:none}
.project-slideshow[open]{display:block}
.project-slideshow{position:fixed;inset:0;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#242a26;color:var(--paper);overflow:hidden;z-index:1000}
.project-slideshow::backdrop{background:#1118}
.slideshow-figure{position:absolute;inset:12px 24px 16px;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;touch-action:pan-y pinch-zoom}
.slideshow-image{display:block;flex:none;width:100%;height:auto;max-height:calc(100% - 144px);object-fit:contain;filter:none;cursor:pointer;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-drag:none}
.slideshow-count{flex:none;min-width:56px;color:#b6beb1;font-size:11px;line-height:1.5;letter-spacing:.13em;text-align:center;font-variant-numeric:tabular-nums}
.slideshow-close,.slideshow-arrow{display:grid;place-items:center;border:0;background:transparent;color:#f7f6f2;cursor:pointer}
.slideshow-close{position:static;flex:none;align-self:flex-end;width:42px;height:42px;padding:0;font-size:34px;font-weight:200}
.slideshow-controls{flex:none;height:48px;display:flex;align-items:center;justify-content:center;gap:18px;transform:translateY(6px)}
.slideshow-arrow{position:static;width:44px;height:44px;padding:0;border:0;border-radius:0;background:transparent;color:#fff;transition:opacity .2s}.slideshow-arrow svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.slideshow-arrow:hover,.slideshow-close:hover{opacity:.65}
.slideshow-arrow:focus-visible{border-radius:50%;outline:1px solid #fff;outline-offset:2px}
@media(max-width:900px){.project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:44px 20px}}
@media(max-width:900px){.works-next{gap:24px}}
@media(max-width:900px){.works-tools{grid-template-columns:1fr;gap:16px}.works-result-count{grid-column:1}.works-filters{gap:12px 16px}}
@media(max-width:650px){.works-hero{padding-top:24px}.works-title{margin:12px 0 52px}.works-title>.eyebrow{margin-bottom:7px}.works-title h1{font-size:clamp(24px,6vw,40px)}.works-projects{padding:40px var(--gutter) 70px}.works-tools{margin-bottom:30px}.works-search input{font-size:16px}.works-filters{gap:12px}.filter-group{gap:5px}.works-filters button{padding:6px 9px;font-size:9px}.project-grid{grid-template-columns:1fr 1fr;gap:34px 12px}.project-card h2{margin-top:10px;font-size:10px;letter-spacing:.055em}.project-tags{gap:6px;margin-top:7px}.project-tag-group{gap:4px}.project-tag-chip{padding:3px 6px;font-size:8px}.project-service-link{font-size:8px}.works-next{grid-template-columns:1fr;gap:8px;padding-top:44px;padding-bottom:50px}.project-slideshow{width:100vw;height:100dvh}.slideshow-figure{inset:8px 12px 12px;gap:10px}.slideshow-image{max-height:calc(100% - 132px)}.slideshow-count{font-size:9px;letter-spacing:.08em}.slideshow-controls{height:44px;gap:16px}.slideshow-arrow{width:40px;height:40px}.slideshow-arrow svg{width:20px;height:20px}}

@media(max-width:650px){.slideshow-arrow:focus-visible{border-radius:50%;outline:1px solid #fff;outline-offset:2px}}

@media(min-width:651px){.works-search input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;width:14px;height:14px;cursor:pointer;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 3l8 8M11 3l-8 8' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}}

/* Let Works cards appear softly in a short stagger as they enter the viewport. */
.js-motion .works-page .project-card.reveal{transition:opacity 1.6s ease-in-out,transform 1.6s cubic-bezier(.22,.61,.36,1)}
@media(min-width:901px){.js-motion .works-page .project-card:nth-child(3n+2){transition-delay:.18s}.js-motion .works-page .project-card:nth-child(3n){transition-delay:.36s}}
@media(max-width:900px){.js-motion .works-page .project-card{transition-delay:0s}.js-motion .works-page .project-card:nth-child(even){transition-delay:.18s}}

.project-field-note{font-size:9px;line-height:1.3;color:var(--muted)}
@media(max-width:650px){.project-field-note{font-size:8px}}

/* Add a fourth project column on wide desktop screens. */
@media(min-width:1400px){.project-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

.project-slideshow[open],
.project-slideshow[open]::backdrop {
  /* Keep this opacity-only fade visible with the shared reduced-motion reset. */
  animation: slideshow-enter 1500ms ease-out both !important;
}

@keyframes slideshow-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.project-slideshow.is-closing[open],
.project-slideshow.is-closing[open]::backdrop {
  animation: slideshow-exit 1250ms ease-in both !important;
}

@keyframes slideshow-exit {
  from { opacity: var(--slideshow-exit-opacity, 1); }
  to { opacity: 0; }
}

.slideshow-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 4px 8px;
  background: #242a26e6;
  color: var(--paper);
  font-size: 11px;
  line-height: 1.4;
  pointer-events: none;
}
