.projects-intro, .gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.projects-intro { border-top: 1px solid var(--line); padding-block: clamp(28px, 3.1vw, 52px); }
.projects-intro h1, .work-directory > h2, .gallery-heading h2 { font-size: clamp(44px, 5.8vw, 92px); line-height: .95; font-weight: 680; letter-spacing: -.075em; margin: 0; }
.projects-intro h1 span, .work-directory > h2 span, .gallery-heading h2 span { color: #119856; }
.projects-intro p { max-width: 41ch; color: var(--muted); font-size: clamp(15px, 1.18vw, 19px); line-height: 1.44; text-wrap: pretty; }
.spotlight { color: var(--paper); background: radial-gradient(ellipse at 76% 59%, #345843 0%, #173c2a 26%, #0b291d 52%, #0a241a 77%); }
.spotlight-layout { display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; gap: clamp(28px,5vw,96px); padding-block: clamp(42px,4.6vw,78px); }
.project-niche { color: #216443; font-size: 11px; font-weight: 720; letter-spacing: .10em; line-height: 1.4; text-transform: uppercase; }
.spotlight .project-niche { color: #90ddae; }
.spotlight h2 { font: 400 clamp(60px,6.45vw,111px)/1.06 Anton, Impact, sans-serif; letter-spacing: -.025em; text-transform: uppercase; transform: skew(-5deg); transform-origin: left bottom; margin: 13px 0 18px; }
.spotlight h2 span { color: var(--green); }
.project-description { line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.spotlight .project-description { max-width: 48ch; color: #e6eee7; font-size: clamp(16px,1.25vw,21px); }
.project-facts { display: grid; gap: 10px; }
.project-facts dt { font-size: 11px; font-weight: 650; }
.project-facts dd { font-size: 14px; font-weight: 620; line-height: 1.4; }
.project-facts small { display: block; font-size: 10px; font-weight: 500; margin-top: 3px; }
.spotlight .project-facts { grid-template-columns: auto auto 1fr; gap: clamp(10px,1.7vw,30px); border-top: 1px solid #4c6a57; padding-top: 17px; margin-top: 22px; }
.spotlight dt, .spotlight small { color: #c0d4c4; }
.spotlight .project-facts dd { margin-top: 4px; }
.spotlight-art { position: relative; display: grid; place-items: center; }
.spotlight-art img { width: min(100%, 530px); height: auto; filter: drop-shadow(0 16px 20px #001b1380); transition: transform .24s; }
.spotlight-art:hover img { transform: translateY(-4px); }
.spotlight-links { display: flex; flex-wrap: wrap; align-items: center; gap: 23px; margin-top: 24px; }
.visit { display: inline-flex; width: fit-content; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #0b6940; text-underline-offset: 4px; }
.visit:hover { text-decoration: underline; }
.spotlight .visit { color: var(--paper); }
.visit svg, .expand-mark svg, .gallery-strip svg { width: 16px; height: 16px; }
.spotlight :focus-visible { outline-color: #a4ebbf; }
.work-directory { padding-block: var(--section-space); }
.work-directory > h2, .gallery-heading h2 { font-size: clamp(38px, 4.1vw, 72px); }
.work-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(36px,4vw,66px) clamp(17px,2vw,33px); margin-top: 34px; }
.work-card { min-width: 0; }
.work-art { position: relative; isolation: isolate; display: grid; place-items: center; aspect-ratio: 1.52; overflow: hidden; border: 1px solid #cfd8ca; background: radial-gradient(ellipse at 50% 30%,#fafbf4,#e6ecdf); }
.work-art img { width: 93%; height: 90%; object-fit: contain; min-height: 0; transition: transform .25s ease; }
.work-art:hover img, .work-art:focus-visible img { transform: scale(1.035); }
.expand-mark { position: absolute; bottom: 10px; right: 10px; border-radius: 50%; display: grid; place-items: center; width: 31px; height: 31px; background: #fdfef9ed; color: var(--forest); border: 1px solid #c4d1c3; }
.work-copy { padding-top: 17px; }
.work-copy h3 { font-size: clamp(24px,2.1vw,36px); line-height: 1.14; letter-spacing: -.048em; font-weight: 650; margin: 5px 0 10px; }
.work-copy .project-description { font-size: 15px; }
.project-details { border-block: 1px solid var(--line); margin: 17px 0 11px; }
.project-details summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding-block: 10px; list-style: none; font-size: 13px; font-weight: 670; }
.project-details summary::-webkit-details-marker { display: none; }
.project-details summary:hover { color: #087144; }
.project-details summary i { position: relative; width: 20px; height: 16px; }
.project-details summary i::before, .project-details summary i::after { content: ""; position: absolute; left: 4px; top: 7px; width: 11px; height: 1.5px; background: currentColor; }
.project-details summary i::after { transform: rotate(90deg); }
.project-details[open] summary i::after { transform: none; }
.project-details > .project-facts, .demo-figures { padding: 0 0 14px; }
.project-details .project-facts > div { display: grid; grid-template-columns: 77px 1fr; gap: 10px; align-items: baseline; }
.project-details dt, .project-details small { color: var(--muted); }
.demo-figures { border-top: 1px solid var(--line); padding-top: 12px; }
.demo-figures strong { font-size: 14px; }
.demo-figures p { font-size: 12px; color: var(--muted); margin: 4px 0 12px; }
.project-gallery { padding-block: var(--section-space); background: #edf1e7; }
.gallery-heading { align-items: center; margin-bottom: 26px; }
.gallery-controls, .viewer-bottom > div { display: flex; gap: 8px; }
.gallery-controls[hidden] { display: none; }
.round-control { display: grid; place-content: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; cursor: pointer; color: var(--ink); background: var(--paper); border: 1px solid #bcc7bd; }
.round-control svg { width: 18px; height: 18px; }
.round-control:hover { border-color: var(--ink); }
.round-control:disabled { opacity: .42; cursor: default; }
.gallery-strip { display: flex; align-items: flex-start; gap: 18px; list-style: none; padding: 4px 3px 14px; margin: 0 -3px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: #9bab9b transparent; }
.gallery-strip li { flex: 0 0 clamp(220px, 27%, 390px); min-width: 0; scroll-snap-align: start; }
.gallery-strip a { display: block; }
.gallery-strip img { width: 100%; aspect-ratio: 1.88; height: auto; object-fit: contain; object-position: center; background: #dfe6db; border: 1px solid #c6d0c3; }
.gallery-strip span { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 9px; font-size: 14px; font-weight: 650; }
.contact .portfolio-seller { font-size: 13px; margin-top: 8px; }
.project-viewer { width: min(1080px,94vw); max-height: 92vh; max-height: 92dvh; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.project-viewer::backdrop { background: #05150fe8; }
.project-viewer[open] { display: flex; flex-direction: column; }
body:has(.project-viewer[open]) { overflow: hidden; }
.viewer-bar, .viewer-bottom { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 14px; padding: 10px 17px; }
.viewer-bar h2 { margin: 0; font-size: clamp(19px,2vw,29px); letter-spacing: -.05em; line-height: 1.15; }
.viewer-close { font: 400 27px/1 Arial,sans-serif; }
.viewer-media { min-height: 0; overflow: auto; background: #dde4db; display: grid; place-items: center; }
.viewer-image { width: 100%; height: auto; max-height: 70vh; max-height: 70dvh; object-fit: contain; }
.viewer-count { font-size: 13px; font-weight: 650; }
@media (max-width: 950px) {
  .work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .spotlight-layout { grid-template-columns: 1.15fr 1fr; gap: 20px; }
  .spotlight h2 { font-size: clamp(55px,7.7vw,74px); }
}
@media (max-width: 700px) {
  .projects-intro { display: block; }
  .projects-intro p { margin-top: 13px; }
  .spotlight-layout { grid-template-columns: 1fr; gap: 20px; padding-block: 20px 34px; }
  .spotlight-art { grid-row: 1; }
  .spotlight-art img { width: min(80%,365px); max-height: 240px; object-fit: contain; }
  .spotlight h2 { margin-block: 9px 12px; }
  .spotlight .project-facts { gap: 12px; }
  .gallery-heading { align-items: flex-end; }
  .gallery-heading h2 { max-width: 12ch; }
  .gallery-controls { gap: 4px; }
}
@media (max-width: 540px) {
  .work-grid { grid-template-columns: minmax(0,1fr); }
  .spotlight .project-facts dd { font-size: 12px; }
  .spotlight .project-facts small { font-size: 9px; }
  .viewer-bar, .viewer-bottom { padding-inline: 11px; }
}
@media (max-width: 380px) {
  .gallery-heading { flex-wrap: wrap; gap: 14px; }
  .gallery-heading h2 { max-width: none; }
  .spotlight h2 { font-size: clamp(45px, 15vw, 55px); }
}
