.projects-carousel { position: relative; isolation: isolate; padding: 70px 0 40px; overflow: hidden; background: #080808; color: #fff; scroll-margin-top: var(--alvr-header-height, 75px); }
.projects-carousel__heading { text-align: center; margin-bottom: 20px; padding: 0 24px; }
.projects-carousel__heading h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 500; letter-spacing: -.04em; margin-top: 8px; }
.projects-carousel__eyebrow { color: #aaa; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.projects-carousel__stage { display: flex; gap: 20px; padding: 20px 24px; overflow-x: auto; scroll-snap-type: x mandatory; }
.projects-carousel__card { position: relative; flex: 0 0 min(400px, 80vw); width: min(400px, 80vw); aspect-ratio: .88; overflow: hidden; border: 1px solid #ffffff25; border-radius: 12px; background: linear-gradient(145deg, #36332e, #15191b); scroll-snap-align: center; }
.projects-carousel__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.projects-carousel__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, #000e, #0005 55%, #0001); }
.projects-carousel__info { position: absolute; inset: auto 24px 32px; text-align: center; }
.projects-carousel__info h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.12; letter-spacing: -.045em; overflow-wrap: anywhere; }
.projects-carousel__info p { font-size: 14px; line-height: 1.5; color: #e5e5e5; margin: 15px auto 22px; max-width: 300px; }
.projects-carousel__tag { display: inline-block; margin-bottom: 12px; color: #ffb26a; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.projects-carousel__open { display: inline-block; padding: 10px 4px; color: white; border-bottom: 1px solid #fff8; text-decoration: none; font-size: 15px; }
.projects-carousel__open { border-top: 0; border-left: 0; border-right: 0; background: transparent; font-family: inherit; cursor: pointer; }
.projects-carousel__controls { display: none; }
.projects-carousel__position { text-align: center; color: #9c9c9c; font-size: 12px; margin-top: 16px; min-height: 18px; }
.projects-carousel__empty { text-align: center; padding: 65px 24px; color: #aaa; }
.projects-carousel.is-enhanced .projects-carousel__stage { position: relative; display: block; height: 570px; padding: 0; overflow: visible; max-width: 1400px; margin: 0 auto; touch-action: pan-y; }
.projects-carousel.is-enhanced .projects-carousel__card { position: absolute; left: 50%; top: 50%; cursor: pointer; }
.projects-carousel.is-enhanced .projects-carousel__card:not(.is-active) .projects-carousel__preview { filter: blur(4px) brightness(.55); }
.projects-carousel.is-enhanced .projects-carousel__card:not(.is-active) .projects-carousel__info { opacity: 0; pointer-events: none; }
.projects-carousel.is-enhanced .projects-carousel__card.is-active { cursor: default; }
.projects-carousel.is-enhanced .projects-carousel__controls { display: flex; justify-content: center; gap: 16px; align-items: center; position: absolute; bottom: 68px; left: 0; right: 0; z-index: 10; }
.projects-carousel.is-enhanced .projects-carousel__position { margin-top: 38px; }
.projects-carousel__arrows { display: flex; gap: 12px; }
.projects-carousel__arrows button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #ff9525; color: #16110a; font: inherit; font-size: 30px; line-height: 1; cursor: pointer; }
.projects-carousel button:disabled { opacity: .3; cursor: default; }
.projects-carousel button:focus-visible, .projects-carousel a:focus-visible, .project-modal button:focus-visible, .project-modal a:focus-visible { outline: 3px solid #ffb269; outline-offset: 5px; }
.project-modal { width: min(1000px, calc(100% - 32px)); max-height: 90dvh; margin: auto; padding: 0; border: 1px solid #ffffff25; border-radius: 18px; background: #111; color: #eee; }
.project-modal::backdrop { background: #000c; backdrop-filter: blur(5px); }
.project-modal__content { position: relative; padding: 40px; }
.project-modal__close { position: absolute; right: 20px; top: 20px; border: 1px solid #ffffff30; color: white; background: #252525; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; }
.project-modal__eyebrow { color: #ffb269; font-size: 11px; text-transform: uppercase; letter-spacing: .15em; }
.project-modal h2 { font-size: clamp(26px, 4vw, 42px); margin: 12px 45px 24px 0; letter-spacing: -.04em; line-height: 1.2; }
.project-modal__video { display: block; width: 100%; max-height: 60vh; background: #000; border-radius: 10px; object-fit: contain; }
.project-modal [hidden] { display: none; }
.project-modal__description { white-space: pre-line; line-height: 1.7; margin: 26px 0; color: #bbb; }
.project-modal__external, .project-modal__permalink { display: inline-block; color: #ffb269; padding: 12px 0; text-decoration: none; }
.project-modal__gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin: 24px 0; }
.project-modal__gallery img { width: 100%; border-radius: 8px; }
.project-modal__gallery figcaption { color: #aaa; margin-top: 8px; font-size: 13px; }
.project-modal-open body { overflow: hidden; }
.project-full-video { display: block; width: 100%; max-height: 70vh; background: #080808; border-radius: 12px; }
.project-external-link { display: inline-block; color: #222; padding: 16px 0; }
.project-description-card p { line-height: 1.7; }
.project-gallery-image { width: 100%; border-radius: 10px; }
.project-gallery .gallery-item { opacity: 1; transform: none; }
@media (max-width: 640px) {
    .projects-carousel { padding-top: 48px; }
    .projects-carousel__card { width: min(320px, calc(100vw - 60px)); aspect-ratio: .82; }
    .projects-carousel.is-enhanced .projects-carousel__stage { height: 435px; }
    .projects-carousel.is-enhanced .projects-carousel__card:not(.is-active) .projects-carousel__preview { filter: blur(2px) brightness(.5); }
    .projects-carousel__info { inset: auto 20px 24px; }
    .projects-carousel__info p { font-size: 13px; }
    .project-modal__content { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) { .projects-carousel * { scroll-behavior: auto; } }
@media (max-width: 767px) {
    .projects-carousel__info, .projects-carousel__heading { perspective: 700px; }
}
