/* Allow the project intro to stick to the viewport while the document scrolls. */
body.ya-home-page { overflow-x: clip; }
.ya-home-page .page-content { overflow: visible; }
.ya-home-project-showcase { padding: 52px max(28px, calc((100vw - 1360px) / 2)) 64px; background: #fff; color: #102f46; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
.ya-showcase-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; gap: 42px; padding-top: 26px; border-top: 4px solid var(--ya-accent, #388ac7); border-image: linear-gradient(90deg, var(--ya-accent, #388ac7), var(--ya-mint, #8ce3d1)) 1; }
.ya-showcase-intro { position: sticky; top: 112px; align-self: start; min-height: min(610px, calc(100svh - 138px)); padding: clamp(28px, 3vw, 44px); isolation: isolate; overflow: hidden; border-radius: 16px; background: #9bdcf1; }
.ya-showcase-intro-content { position: relative; z-index: 1; }
.ya-showcase-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; color: #24506b; font-size: 11px; font-weight: 650; letter-spacing: 1.2px; text-transform: uppercase; }
.ya-showcase-eyebrow > span { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: #278daf; box-shadow: 0 0 0 4px rgba(39,141,175,.12); }
.ya-home-project-showcase .ya-showcase-intro h2 { margin: 0 0 24px; color: #0c2b40; font-size: clamp(30px, 3.15vw, 46px); font-weight: 750; line-height: 1.1; letter-spacing: -1.6px; }
.ya-showcase-intro p { margin: 0 0 30px; max-width: 430px; color: #315b71; font-size: 14px; line-height: 1.75; }
.ya-showcase-all { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 10px; border-bottom: 1px solid rgba(16,47,70,.35); color: #10334a; font-size: 15px; font-weight: 700; text-decoration: none; }
.ya-showcase-all:hover { color: #0a5f7d; text-decoration: none; }
.ya-showcase-all i { transition: transform .25s; }
.ya-showcase-all:hover i { transform: translateX(4px); }
.ya-showcase-scroll-cue { display: flex; align-items: center; gap: 9px; margin-top: 44px; color: #3c6d83; font-size: 11px; }
.ya-showcase-scroll-cue > span { width: 28px; height: 1px; background: #5895ab; }
.ya-showcase-scroll-cue i { margin-left: 4px; font-size: 10px; }
.ya-showcase-rays { position: absolute; z-index: 0; width: 620px; height: 620px; max-width: none; bottom: -445px; right: -210px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.3) 0deg 2deg, transparent 2deg 14deg); -webkit-mask-image: radial-gradient(circle, transparent 0 20%, #000 20% 33%, transparent 33% 38%, #000 38% 55%, transparent 55% 60%, #000 60%); mask-image: radial-gradient(circle, transparent 0 20%, #000 20% 33%, transparent 33% 38%, #000 38% 55%, transparent 55% 60%, #000 60%); pointer-events: none; }
.ya-showcase-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.ya-showcase-column { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.ya-showcase-column + .ya-showcase-column { padding-left: 24px; border-left: 1px solid #dce6eb; }
.ya-showcase-card { min-width: 0; padding-bottom: 28px; border-bottom: 1px solid #dde8ed; }
.ya-showcase-photo { display: block; position: relative; overflow: hidden; width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; background: #e8f0f4; }
.ya-showcase-photo-frame { display: block; width: 100%; height: 100%; transition: transform .4s; }
.ya-showcase-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ya-showcase-photo-cropped .ya-showcase-photo-frame { position: absolute; top: 50%; left: 50%; width: max(100%, calc(var(--cover-ratio) * 75%)); aspect-ratio: var(--cover-ratio); height: auto; overflow: hidden; transform: translate(-50%, -50%); }
.ya-showcase-photo-cropped img { position: absolute; width: var(--cover-width); height: var(--cover-height); max-width: none; left: var(--cover-left); top: var(--cover-top); object-fit: fill; }
.ya-showcase-card-label { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0 11px; color: #7290a0; font-size: 9px; line-height: 1.5; letter-spacing: .4px; text-transform: uppercase; }
.ya-showcase-card-label > span:last-child { color: #3293a8; font-variant-numeric: tabular-nums; }
.ya-home-project-showcase .ya-showcase-card h3 { margin: 0 0 14px; color: #173c53; font-size: clamp(19px, 1.65vw, 24px); font-weight: 700; letter-spacing: -.5px; line-height: 1.28; overflow-wrap: break-word; }
.ya-showcase-card h3 a { color: inherit; text-decoration: none; }
.ya-showcase-card h3 a:hover { color: #267fa0; }
.ya-showcase-card p { margin: 0 0 20px; color: #647d8d; font-size: 13px; line-height: 1.8; }
.ya-showcase-project-link { display: inline-flex; align-items: center; gap: 14px; color: #246e91; font-size: 12px; font-weight: 650; text-decoration: none; }
.ya-showcase-project-link:hover { color: #163e56; text-decoration: none; }
.ya-showcase-project-link i { transition: transform .25s; }
.ya-showcase-project-link:hover i { transform: translateX(4px); }
@media (hover: hover) and (pointer: fine) {
    .ya-showcase-photo:hover .ya-showcase-photo-frame { transform: scale(1.035); }
    .ya-showcase-photo-cropped:hover .ya-showcase-photo-frame { transform: translate(-50%, -50%) scale(1.035); }
}
@media (max-width: 1100px) {
    .ya-showcase-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 26px; }
    .ya-showcase-intro { padding: 28px; }
    .ya-home-project-showcase .ya-showcase-intro h2 { font-size: 33px; letter-spacing: -1px; }
    .ya-showcase-projects { gap: 18px; }
    .ya-showcase-column + .ya-showcase-column { padding-left: 18px; }
}
@media (max-width: 800px), (max-height: 650px) {
    .ya-showcase-intro { position: relative; top: auto; min-height: 0; }
    .ya-showcase-layout { grid-template-columns: minmax(0, 1fr); }
    .ya-showcase-intro p { max-width: 600px; }
    .ya-showcase-scroll-cue { display: none; }
    .ya-showcase-rays { bottom: -450px; right: -100px; }
}
@media (max-width: 520px) {
    .ya-home-project-showcase { padding: 30px 20px 40px; }
    .ya-showcase-layout { gap: 28px; padding-top: 20px; }
    .ya-showcase-intro { padding: 27px 24px; border-radius: 12px; }
    .ya-home-project-showcase .ya-showcase-intro h2 { font-size: 31px; }
    .ya-showcase-eyebrow { margin-bottom: 20px; font-size: 10px; }
    .ya-showcase-projects { display: flex; flex-direction: column; gap: 28px; }
    .ya-showcase-column { display: contents; }
    .ya-showcase-column + .ya-showcase-column { padding: 0; border: 0; }
    .ya-showcase-card { width: 100%; order: var(--project-order); }
    .ya-home-project-showcase .ya-showcase-card h3 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
    .ya-showcase-photo-frame, .ya-showcase-all i, .ya-showcase-project-link i { transition: none; }
    .ya-showcase-photo:hover .ya-showcase-photo-frame, .ya-showcase-all:hover i, .ya-showcase-project-link:hover i { transform: none; }
    .ya-showcase-photo-cropped:hover .ya-showcase-photo-frame { transform: translate(-50%, -50%); }
}
