/* Client projects: image-led cards with native, keyboard-accessible details. */
.homepage .client-projects { padding: clamp(44px, 6vw, 84px) 0; scroll-margin-top: 100px; border-block: 1px solid var(--border); background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 3%, var(--bg-body)), var(--bg-body) 65%); }
.homepage .client-projects-heading { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 24px; margin-bottom: 30px; }
.homepage .projects-eyebrow { margin: 0 0 10px; color: var(--primary) !important; font-size: 11px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.homepage .client-projects-heading h2 { max-width: 18ch; margin: 0; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.15; letter-spacing: -1.3px; text-wrap: balance; }
.homepage .client-projects-heading h2 span { color: var(--primary) !important; }
.homepage .client-projects-heading > p { margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.8; }
.homepage .client-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.homepage .client-project { min-width: 0; border: 1px solid var(--border); border-radius: 20px; background: var(--bg-card); overflow: clip; transition: border-color .25s ease, box-shadow .25s ease; }
.homepage .client-project-featured { grid-column: span 2; align-self: stretch; }
.homepage .project-image { position: relative; min-width: 0; aspect-ratio: 2 / 1; background: var(--bg-glass); overflow: hidden; }
.homepage .project-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.homepage .project-image-nainital { aspect-ratio: 3 / 1; }
.homepage .project-image-nainital img { object-position: 50% 100%; }
.homepage .project-image.project-image-realconverter { aspect-ratio: 960 / 534; }
.homepage .client-project-featured .project-content > p:not(.project-category) { max-width: 65ch; }
.homepage .project-content { min-width: 0; padding: 24px; }
.homepage .project-content .project-category { margin: 0 0 10px; color: var(--primary) !important; font-size: 12px; font-weight: 600; line-height: 1.6; }
.homepage .project-content h3 { margin: 0 0 12px; font-size: 27px; line-height: 1.2; letter-spacing: -.6px; overflow-wrap: anywhere; }
.homepage .project-content > p:not(.project-category) { margin: 0 0 20px; font-size: 14px; line-height: 1.8; }
.homepage .project-details { border-top: 1px solid var(--border); }
.homepage .project-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 11px 0; color: var(--text-main); font-size: 13px; font-weight: 600; list-style: none; cursor: pointer; }
.homepage .project-details summary::-webkit-details-marker { display: none; }
.homepage .project-details summary > i { flex-shrink: 0; color: var(--primary); font-size: 14px; transition: transform .2s ease; }
.homepage .project-details[open] summary > i { transform: rotate(45deg); }
.homepage .project-details > div { padding: 2px 0 12px; }
.homepage .project-details p { margin: 0 0 8px; font-size: 13px; line-height: 1.8; }
.homepage .project-details a { display: inline-block; padding-block: 6px; color: var(--primary) !important; font-size: 13px; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.homepage .project-visit { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text-main) !important; font-size: 13px; font-weight: 600; text-decoration: none; }
.homepage .project-visit > i { color: var(--primary); transition: transform .2s ease; }
.homepage .client-projects-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 26px; }
.homepage .client-projects-footer p { margin: 0; font-size: 14px; }
.homepage .client-projects-footer a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--text-main) !important; font-size: 14px; font-weight: 700; text-decoration: none; }
.homepage .client-projects-footer a i { color: var(--primary); }
.homepage .client-projects :is(a, summary):focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 3px; }
.homepage .client-project:focus-within { border-color: var(--primary); }
@media (hover: hover) and (pointer: fine) {
    .homepage .client-project:hover { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); box-shadow: 0 12px 35px color-mix(in srgb, var(--primary) 6%, transparent); }
    .homepage .client-project:hover .project-image img { transform: scale(1.035); }
    .homepage .project-visit:hover > i { transform: translate(2px, -2px); }
    .homepage .client-projects-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .homepage .client-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .homepage .project-image { aspect-ratio: 1.8 / 1; }
    .homepage .project-image-nainital { aspect-ratio: 2.8 / 1; }
}
@media (max-width: 767px) {
    .homepage .client-projects-heading { grid-template-columns: 1fr; gap: 16px; }
    .homepage .client-projects-heading > p { max-width: 55ch; font-size: 14px; }
    .homepage .client-project-grid { grid-template-columns: 1fr; gap: 20px; }
    .homepage .client-project-featured { grid-column: auto; grid-template-columns: 1fr; }
    .homepage .project-image, .homepage .project-image-nainital { aspect-ratio: 1.8 / 1; min-height: 0; }
    .homepage .project-image-nainital img { position: static; }
    .homepage .project-content { padding: 21px; }
    .homepage .project-content h3 { font-size: 27px; }
    .homepage .client-projects-footer { display: block; padding-top: 20px; }
    .homepage .client-projects-footer p { padding-right: 44px; }
    .homepage .client-projects-footer a { margin-top: 6px; padding-right: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    .homepage .client-projects *, .homepage .client-projects *::before, .homepage .client-projects *::after { transition: none !important; animation: none !important; }
}
