/* Four-column project collection with a layered, three-dimensional hover. */
#home-projects.hb-home-projects { background: #f3efe7; color: #25332d; padding: 6.5rem 0 5rem; min-height: auto; }
#home-projects::before { background: linear-gradient(90deg,transparent,#c4a06555,transparent); }
#home-projects > .hb-wrap,.hb-work { width: min(100% - 5rem,1360px); margin-inline: auto; }
#home-projects .hb-home-projects__head { align-items: center; margin-bottom: 2.5rem; }
#home-projects .hb-eyebrow { display: flex; align-items: center; gap: .7rem; color: #8c6e39; font-size: .75rem; margin-bottom: .65rem; }
#home-projects .hb-eyebrow::before { content: ''; width: 7px; height: 7px; transform: rotate(45deg); background: #b68b40; box-shadow: 0 0 0 5px #b68b4012; }
#home-projects .hb-home-projects__head h2 { color: #25332d; font-size: clamp(1.9rem,3.4vw,3.15rem); font-weight: 800; line-height: 1.45; letter-spacing: -.04em; }
#home-projects .hb-pill { display: inline-flex; align-items: center; gap: 1.25rem; padding: .8rem 1.3rem; border: 1px solid #25332d33; border-radius: 35px; background: transparent; color: #25332d; font-size: .85rem; transition: color .3s,background .3s; }
#home-projects .hb-pill::after { content: '↖'; font-size: 1.3rem; }
#home-projects .hb-pill:hover { color: #fff; background: #25332d; border-color: #25332d; }
.hb-work { --work-gold: #e9c585; position: relative; }
.hb-work *, .hb-work *::before,.hb-work *::after { box-sizing: border-box; }
.hb-work__grid { display: grid; grid-template-columns: repeat(var(--work-columns,4),minmax(0,1fr)); gap: 28px 24px; }
.hb-work [hidden] { display: none !important; }
.hb-work.is-slider .hb-work__viewport { overflow: hidden; padding: 22px 12px 32px; margin: -22px -12px -32px; touch-action: pan-y; }
.hb-work.is-slider .hb-work__grid { display: flex; gap: 24px; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.hb-work__page { display: grid; grid-template-columns: repeat(var(--work-columns,4),minmax(0,1fr)); gap: 24px; flex: 0 0 100%; min-width: 0; align-items: stretch; }
.hb-work.is-instant .hb-work__grid { transition: none; }
.hb-work__navigation { display: flex; align-items: center; gap: 28px; padding-top: 27px; margin-top: 24px; border-top: 1px solid #25332d20; color: #25332d; }
.hb-work__arrows { display: flex; gap: 9px; flex-shrink: 0; }
.hb-work__arrows button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #25332d35; border-radius: 50%; background: transparent; color: inherit; font-family: inherit; font-size: 22px; line-height: 1; cursor: pointer; transition: background .25s,color .25s,transform .25s; }
.hb-work__arrows .hb-work__play { font-size: 16px; border-color: transparent; }
.hb-work__arrows button:hover { background: #25332d; color: #fff; transform: translateY(-2px); }
.hb-work__dots { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 7px 4px; }
.hb-work__dots::-webkit-scrollbar { display: none; }
.hb-work__dots button { flex: 0 0 24px; width: 24px; height: 30px; border: 0; background: transparent; position: relative; padding: 0; cursor: pointer; }
.hb-work__dots button::after { content: ''; position: absolute; inset-inline: 3px; top: 13px; height: 3px; border-radius: 3px; background: #25332d30; transition: background .3s,transform .3s; }
.hb-work__dots button[aria-pressed="true"]::after { background: #a87d34; transform: scaleY(1.5); }
.hb-work__dots button:hover::after { background: #a87d34; }
.hb-work__count { font: 12px 'Segoe UI',sans-serif; letter-spacing: .1em; white-space: nowrap; flex-shrink: 0; }
.hb-work__navigation button:focus-visible { outline: 2px solid #ad8238; outline-offset: 3px; }
.hb-work__status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hb-work__card { position: relative; min-width: 0; perspective: 1100px; transition: opacity .8s ease,transform .8s cubic-bezier(.22,1,.36,1); }
.hb-work.has-reveal .hb-work__card { opacity: 0; transform: translateY(35px) rotateX(7deg); }
.hb-work.has-reveal .hb-work__card.is-revealed { opacity: 1; transform: none; transition-delay: var(--entry-delay,0ms); }
.hb-work__card:hover,.hb-work__card:focus-within { z-index: 3; }
.hb-work__link { --tilt-x: 0deg; --tilt-y: 0deg; --light-x: 50%; --light-y: 50%; display: block; position: relative; min-height: 350px; aspect-ratio: 3 / 4.25; color: #fff; text-decoration: none; border-radius: 17px; background: #263831; transform-style: preserve-3d; transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); box-shadow: 0 14px 25px -14px #21362b80,0 0 0 1px #ffffff80; transition: transform .45s cubic-bezier(.22,1,.36,1),box-shadow .45s; -webkit-tap-highlight-color: transparent; }
.hb-work__link.is-tilting { transition: transform .12s ease-out,box-shadow .45s; }
.hb-work__link { width: 100%; min-width: 0; }
.hb-work__link:is(:hover,:focus-visible) { color: #fff; box-shadow: 0 30px 35px -18px #21362b9c,0 0 0 1px #c8a663; transform: translateY(-8px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
.hb-work__link:focus-visible { outline: 3px solid #ad8238; outline-offset: 6px; }
.hb-work__frame { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; transform: translateZ(0); background: linear-gradient(135deg,#3a5141,#152821); }
.hb-work__frame img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.025); transition: transform .9s cubic-bezier(.22,1,.36,1),filter .6s; filter: saturate(.9); }
.hb-work__link:is(:hover,:focus-visible) .hb-work__frame img { transform: scale(1.1); filter: saturate(1.08); }
.hb-work__shade { position: absolute; inset: 0; background: linear-gradient(0deg,#0c1d18fa 0%,#10251dcc 23%,#132b1c35 58%,#0b201d33 100%); }
.hb-work__shine { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at var(--light-x) var(--light-y),#fff7d945,transparent 58%); mix-blend-mode: screen; transition: opacity .4s; }
.hb-work__link:hover .hb-work__shine { opacity: 1; }
.hb-work__top { position: absolute; inset-inline: 21px; top: 21px; display: flex; align-items: center; justify-content: space-between; gap: 12px; transform: translateZ(24px); pointer-events: none; }
.hb-work__number { font: 400 14px 'Segoe UI',sans-serif; color: #fff; letter-spacing: .1em; text-shadow: 0 2px 8px #0006; }
.hb-work__badge { padding: 5px 10px; border: 1px solid #ffffff50; border-radius: 30px; color: #fff; background: #1e322c44; backdrop-filter: blur(8px); font-size: .6rem; }
.hb-work__body { position: absolute; inset-inline: 23px; bottom: 23px; display: flex; flex-direction: column; align-items: flex-start; transform: translateZ(32px); pointer-events: none; }
.hb-work__rule { display: block; width: 30px; height: 2px; background: var(--work-gold); margin-bottom: 15px; transition: width .5s; }
.hb-work__link:is(:hover,:focus-visible) .hb-work__rule { width: 58px; }
.hb-work__body h3 { margin: 0 0 9px; color: #fff; font-size: clamp(1rem,1.42vw,1.45rem); font-weight: 700; line-height: 1.75; text-wrap: balance; }
.hb-work__description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.6em; color: #d5ded5; font-size: .72rem; line-height: 1.8; margin-bottom: 17px; }
.hb-work__more { display: flex; align-items: center; justify-content: space-between; width: 100%; padding-top: 13px; border-top: 1px solid #ffffff26; color: #efdab5; font-size: .7rem; font-weight: 500; }
.hb-work__more > span { display: grid; place-items: center; flex-shrink: 0; width: 29px; height: 29px; border: 1px solid #e9c58566; border-radius: 50%; color: #edcc91; font-size: 1rem; transition: background .3s,color .3s,transform .4s; }
.hb-work__link:is(:hover,:focus-visible) .hb-work__more > span { color: #263831; background: var(--work-gold); transform: rotate(-10deg); }
@media (max-width: 1100px) { .hb-work__grid { gap: 22px 18px; } .hb-work__body { inset-inline: 18px; bottom: 18px; } .hb-work__top { inset-inline: 18px; top: 18px; } .hb-work__link { min-height: 335px; } }
@media (max-width: 1023px) { .hb-work__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; } .hb-work__link { aspect-ratio: 4 / 5; } .hb-work__body h3 { font-size: 1.4rem; } .hb-work__description { font-size: .8rem; } }
@media (max-width: 1023px) { .hb-work__page { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) {
 #home-projects.hb-home-projects { padding: 6.5rem 0 3rem; }
 #home-projects > .hb-wrap,.hb-work { width: calc(100% - 2.5rem); }
 #home-projects .hb-home-projects__head { gap: 12px; margin-bottom: 1.7rem; align-items: flex-end; flex-wrap: wrap; }
 #home-projects .hb-home-projects__head h2 { font-size: clamp(1.25rem,5vw,1.9rem); }
 #home-projects .hb-eyebrow { font-size: .65rem; }
 #home-projects .hb-pill { font-size: .65rem; padding: .6rem .75rem; gap: .5rem; white-space: nowrap; }
 .hb-work__grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
 .hb-work__page { grid-template-columns: minmax(0,1fr); }
 .hb-work__navigation { gap: 14px; padding-top: 20px; margin-top: 20px; }
 .hb-work__link { min-height: 380px; aspect-ratio: 4 / 4.7; }
 .hb-work__top { inset-inline: 24px; top: 24px; }
 .hb-work__body { inset-inline: 25px; bottom: 25px; }
 .hb-work__body h3 { font-size: 1.45rem; }
 .hb-work__description { min-height: auto; }
}
@media (prefers-reduced-motion: reduce) {
 .hb-work *, .hb-work *::before,.hb-work *::after { animation: none !important; transition: none !important; }
 .hb-work.has-reveal .hb-work__card { opacity: 1; transform: none; }
 .hb-work__link,.hb-work__link:is(:hover,:focus-visible),.hb-work__frame img,.hb-work__more > span { transform: none !important; }
 .hb-work__shine { display: none; }
}
